aboutsummaryrefslogtreecommitdiff
path: root/src/Ewmh.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-10-23 17:34:30 (GMT)
committermarkt <markt>2007-10-23 17:34:30 (GMT)
commit1c05af4329e62b8bfaf3c0f032c52ace4eaa5975 (patch)
treeaf37aee8b1e6cde31050cd627fcbd56c55f9dc21 /src/Ewmh.cc
parentc849d3c7ffc518d85a365664530f1faa102cf83f (diff)
downloadfluxbox_pavel-1c05af4329e62b8bfaf3c0f032c52ace4eaa5975.zip
fluxbox_pavel-1c05af4329e62b8bfaf3c0f032c52ace4eaa5975.tar.bz2
allow remembering minimized, maximized, and fullscreen state
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()))