applied patch from mark to fix a _net_wm_state_hidden issue
This commit is contained in:
parent
2a062eaa86
commit
1f0be0c59f
2 changed files with 13 additions and 1 deletions
|
@ -1,7 +1,9 @@
|
||||||
(Format: Year/Month/Day)
|
(Format: Year/Month/Day)
|
||||||
Changes for 0.9.15:
|
Changes for 0.9.15:
|
||||||
*06/03/07:
|
*06/03/07:
|
||||||
* Bugfix for stuck icons (Thanks _markt)
|
* Bugfix for _net_wm_state_hidden (Thanks Mark)
|
||||||
|
Ewmh.cc
|
||||||
|
* Bugfix for stuck icons (Thanks Mark Tiefenbruck, mark at tiefenbruck dot org)
|
||||||
IconbarTool.cc
|
IconbarTool.cc
|
||||||
*06/03/05:
|
*06/03/05:
|
||||||
* Update da_DK (danish) translation.
|
* Update da_DK (danish) translation.
|
||||||
|
|
10
src/Ewmh.cc
10
src/Ewmh.cc
|
@ -885,6 +885,11 @@ void Ewmh::setState(FluxboxWindow &win, Atom state, bool value) {
|
||||||
if ((value && !win.isFullscreen()) ||
|
if ((value && !win.isFullscreen()) ||
|
||||||
(!value && win.isFullscreen()))
|
(!value && win.isFullscreen()))
|
||||||
setFullscreen(win, value);
|
setFullscreen(win, value);
|
||||||
|
} else if (state == m_net_wm_state_hidden) { // minimized
|
||||||
|
if (value && !win.isIconic())
|
||||||
|
win.iconify();
|
||||||
|
else if (!value && win.isIconic())
|
||||||
|
win.deiconify();
|
||||||
} else if (state == m_net_wm_state_skip_taskbar) {
|
} else if (state == m_net_wm_state_skip_taskbar) {
|
||||||
win.setIconHidden(value);
|
win.setIconHidden(value);
|
||||||
} else if (state == m_net_wm_state_below) { // bottom layer
|
} else if (state == m_net_wm_state_below) { // bottom layer
|
||||||
|
@ -913,6 +918,11 @@ void Ewmh::toggleState(FluxboxWindow &win, Atom state) {
|
||||||
win.maximizeVertical();
|
win.maximizeVertical();
|
||||||
} else if (state == m_net_wm_state_fullscreen) { // fullscreen
|
} else if (state == m_net_wm_state_fullscreen) { // fullscreen
|
||||||
setFullscreen(win, getState(win) == 0); // toggle current state
|
setFullscreen(win, getState(win) == 0); // toggle current state
|
||||||
|
} else if (state == m_net_wm_state_hidden) { // minimized
|
||||||
|
if(win.isIconic())
|
||||||
|
win.deiconify();
|
||||||
|
else
|
||||||
|
win.iconify();
|
||||||
} else if (state == m_net_wm_state_skip_taskbar) {
|
} else if (state == m_net_wm_state_skip_taskbar) {
|
||||||
win.setIconHidden(!win.isIconHidden());
|
win.setIconHidden(!win.isIconHidden());
|
||||||
} else if (state == m_net_wm_state_below) { // bottom layer
|
} else if (state == m_net_wm_state_below) { // bottom layer
|
||||||
|
|
Loading…
Reference in a new issue