all repos — fluxbox @ a39e3e33b5eece4c59a61c202152ad607e546d56

custom fork of the fluxbox windowmanager

only remove outside border when disabled by decoration mask
Mark Tiefenbruck mark@fluxbox.org
commit

a39e3e33b5eece4c59a61c202152ad607e546d56

parent

ad6a7e48f47b06f24664eab21a9665558b704ff1

3 files changed, 10 insertions(+), 6 deletions(-)

jump to
M ChangeLogChangeLog

@@ -1,5 +1,8 @@

(Format: Year/Month/Day) Changes for 1.1 +*08/06/04: + * Leave titlebar and handle borders alone with borderless windows (Mark) + FbWinFrame.cc/hh *08/06/03: * Add -list-commands command line option, which prints a list of valid fluxbox commands (Mark)
M src/FbWinFrame.ccsrc/FbWinFrame.cc

@@ -1460,8 +1460,8 @@ frameExtentSig().notify();

} bool FbWinFrame::setBorderWidth(bool do_move) { - unsigned int border_width = m_decoration_mask & DECORM_BORDER ? - theme()->border().width() : 0; + unsigned int border_width = theme()->border().width(); + unsigned int win_bw = m_decoration_mask & DECORM_BORDER ? border_width : 0; if (border_width && theme()->border().color().pixel() != window().borderColor()) {

@@ -1473,7 +1473,8 @@ gripRight().setBorderColor(theme()->border().color());

tabcontainer().setBorderColor(theme()->border().color()); } - if (border_width == window().borderWidth()) + if (border_width == handle().borderWidth() && + win_bw == window().borderWidth()) return false; int grav_x=0, grav_y=0;

@@ -1490,7 +1491,7 @@ bw_changes += static_cast<signed>(border_width - titlebar().borderWidth());

if (m_use_handle) bw_changes += static_cast<signed>(border_width - handle().borderWidth()); - window().setBorderWidth(border_width); + window().setBorderWidth(win_bw); setTabMode(NOTSET);
M src/FbWinFrame.hhsrc/FbWinFrame.hh

@@ -248,8 +248,8 @@ bool focused() const { return m_focused; }

bool isShaded() const { return m_shaded; } FocusableTheme<FbWinFrameTheme> &theme() const { return m_theme; } /// @return titlebar height - unsigned int titlebarHeight() const { return (m_use_titlebar?m_titlebar.height()+m_window.borderWidth():0); } - unsigned int handleHeight() const { return (m_use_handle?m_handle.height()+m_window.borderWidth():0); } + unsigned int titlebarHeight() const { return (m_use_titlebar?m_titlebar.height()+m_titlebar.borderWidth():0); } + unsigned int handleHeight() const { return (m_use_handle?m_handle.height()+m_handle.borderWidth():0); } /// @return size of button unsigned int buttonHeight() const; bool externalTabMode() const { return m_tabmode == EXTERNAL && m_use_tabs; }