all repos — fluxbox @ 84c87a86f9365014b7425c56a2a1051c102df804

custom fork of the fluxbox windowmanager

remove option to disable decorations on transient windows
Mark Tiefenbruck mark@fluxbox.org
commit

84c87a86f9365014b7425c56a2a1051c102df804

parent

cbc1075dde0276956aca1753a229097bcc7bac87

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

jump to
M src/Screen.ccsrc/Screen.cc

@@ -294,7 +294,6 @@ workspace_warping(rm, true, scrname+".workspacewarping", altscrname+".WorkspaceWarping"),

show_window_pos(rm, true, scrname+".showwindowposition", altscrname+".ShowWindowPosition"), auto_raise(rm, true, scrname+".autoRaise", altscrname+".AutoRaise"), click_raises(rm, true, scrname+".clickRaises", altscrname+".ClickRaises"), - decorate_transient(rm, true, scrname+".decorateTransient", altscrname+".DecorateTransient"), default_deco(rm, "NORMAL", scrname+".defaultDeco", altscrname+".DefaultDeco"), rootcommand(rm, "", scrname+".rootCommand", altscrname+".RootCommand"), tab_placement(rm, FbWinFrame::TOPLEFT, scrname+".tab.placement", altscrname+".Tab.Placement"),

@@ -1810,9 +1809,6 @@ _BOOLITEM(menu, Configmenu, WorkspaceWarping,

"Workspace Warping", "Workspace Warping - dragging windows to the edge and onto the next workspace", resource.workspace_warping, saverc_cmd); - _BOOLITEM(menu, Configmenu, DecorateTransient, - "Decorate Transient Windows", "Decorate Transient Windows", - resource.decorate_transient, saverc_cmd); _BOOLITEM(menu, Configmenu, ClickRaises, "Click Raises", "Click Raises", resource.click_raises, saverc_cmd);
M src/Screen.hhsrc/Screen.hh

@@ -118,7 +118,6 @@ bool getMaxIgnoreIncrement() const { return *resource.max_ignore_inc; }

bool getMaxDisableMove() const { return *resource.max_disable_move; } bool getMaxDisableResize() const { return *resource.max_disable_resize; } bool doShowWindowPos() const { return *resource.show_window_pos; } - bool decorateTransient() const { return *resource.decorate_transient; } const std::string &defaultDeco() const { return *resource.default_deco; } const std::string windowMenuFilename() const; FbTk::ImageControl &imageControl() { return *m_image_control.get(); }

@@ -552,8 +551,7 @@ const std::string &altscrname);

FbTk::Resource<bool> opaque_move, full_max, max_ignore_inc, max_disable_move, max_disable_resize, - workspace_warping, show_window_pos, auto_raise, click_raises, - decorate_transient; + workspace_warping, show_window_pos, auto_raise, click_raises; FbTk::Resource<std::string> default_deco; FbTk::Resource<std::string> rootcommand; FbTk::Resource<FbWinFrame::TabPlacement> tab_placement;
M src/Window.ccsrc/Window.cc

@@ -441,15 +441,8 @@ /**************************************************/

/* Read state above here, apply state below here. */ /**************************************************/ - if (m_client->isTransient()) { - if (m_client->transientFor()->fbwindow()) - stuck = m_client->transientFor()->fbwindow()->isStuck(); - - if (!screen().decorateTransient()) { - decorations.maximize = functions.maximize = false; - decorations.handle = false; - } - } + if (m_client->isTransient() && m_client->transientFor()->fbwindow()) + stuck = m_client->transientFor()->fbwindow()->isStuck(); if (!m_client->sizeHints().isResizable()) { functions.resize = functions.maximize = false;

@@ -2188,18 +2181,12 @@ if (!client.sizeHints().isResizable()) {

if (functions.resize || functions.maximize) changed = true; - functions.resize=false; - functions.maximize=false; + functions.resize = functions.maximize = false; } else { // TODO: is broken while handled by FbW, needs to be in WinClient - if (!client.isTransient() || screen().decorateTransient()) { - if (!functions.maximize) - changed = true; - functions.maximize = true; - } - if (!functions.resize) + if (!functions.maximize || !functions.resize) changed = true; - functions.resize = true; + functions.maximize = functions.resize = true; } if (changed) {