summaryrefslogtreecommitdiff
path: root/src/Ewmh.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ewmh.cc')
-rw-r--r--src/Ewmh.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/Ewmh.cc b/src/Ewmh.cc
index 7266496..11da267 100644
--- a/src/Ewmh.cc
+++ b/src/Ewmh.cc
@@ -1044,13 +1044,11 @@ void Ewmh::setState(FluxboxWindow &win, Atom state, bool value,
1044 (!value && win.isShaded())) 1044 (!value && win.isShaded()))
1045 win.shade(); 1045 win.shade();
1046 } else if (state == m_net_wm_state_maximized_horz ) { // maximized Horizontal 1046 } else if (state == m_net_wm_state_maximized_horz ) { // maximized Horizontal
1047 if ((value && !win.isMaximized()) || 1047 if (value ^ win.isMaximizedHorz())
1048 (!value && win.isMaximized())) 1048 win.maximizeHorizontal();
1049 win.maximizeHorizontal();
1050 } else if (state == m_net_wm_state_maximized_vert) { // maximized Vertical 1049 } else if (state == m_net_wm_state_maximized_vert) { // maximized Vertical
1051 if ((value && !win.isMaximized()) || 1050 if (value ^ win.isMaximizedVert())
1052 (!value && win.isMaximized())) 1051 win.maximizeVertical();
1053 win.maximizeVertical();
1054 } else if (state == m_net_wm_state_fullscreen) { // fullscreen 1052 } else if (state == m_net_wm_state_fullscreen) { // fullscreen
1055 if ((value && !win.isFullscreen()) || 1053 if ((value && !win.isFullscreen()) ||
1056 (!value && win.isFullscreen())) 1054 (!value && win.isFullscreen()))