diff options
author | markt <markt> | 2007-05-20 21:45:51 (GMT) |
---|---|---|
committer | markt <markt> | 2007-05-20 21:45:51 (GMT) |
commit | cb3f9ed28a1f6972c83d116aa5e9c7f93f2d742a (patch) | |
tree | 5e9191a4607c9ff2b726b63c710c53ac60f3b56d /src/Window.cc | |
parent | ff5a2559184f68f4c8ac98125b7e3a5845765e41 (diff) | |
download | fluxbox-cb3f9ed28a1f6972c83d116aa5e9c7f93f2d742a.zip fluxbox-cb3f9ed28a1f6972c83d116aa5e9c7f93f2d742a.tar.bz2 |
added session.screen<N>.maxDisableMove/Resize, plus some other cleanup
Diffstat (limited to 'src/Window.cc')
-rw-r--r-- | src/Window.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Window.cc b/src/Window.cc index 3042812..0d8b9e5 100644 --- a/src/Window.cc +++ b/src/Window.cc | |||
@@ -1842,7 +1842,7 @@ void FluxboxWindow::stick() { | |||
1842 | stuck = !stuck; | 1842 | stuck = !stuck; |
1843 | 1843 | ||
1844 | if (m_initialized) { | 1844 | if (m_initialized) { |
1845 | setState(m_current_state, false); | 1845 | stateSig().notify(); |
1846 | // notify since some things consider "stuck" to be a pseudo-workspace | 1846 | // notify since some things consider "stuck" to be a pseudo-workspace |
1847 | m_workspacesig.notify(); | 1847 | m_workspacesig.notify(); |
1848 | } | 1848 | } |
@@ -3233,6 +3233,9 @@ void FluxboxWindow::startMoving(int x, int y) { | |||
3233 | if (s_num_grabs > 0) | 3233 | if (s_num_grabs > 0) |
3234 | return; | 3234 | return; |
3235 | 3235 | ||
3236 | if (isMaximized() && screen().getMaxDisableMove()) | ||
3237 | return; | ||
3238 | |||
3236 | // save first event point | 3239 | // save first event point |
3237 | m_last_resize_x = x; | 3240 | m_last_resize_x = x; |
3238 | m_last_resize_y = y; | 3241 | m_last_resize_y = y; |
@@ -3503,6 +3506,9 @@ void FluxboxWindow::startResizing(int x, int y, ResizeDirection dir) { | |||
3503 | if (s_num_grabs > 0 || isShaded() || isIconic() ) | 3506 | if (s_num_grabs > 0 || isShaded() || isIconic() ) |
3504 | return; | 3507 | return; |
3505 | 3508 | ||
3509 | if (isMaximized() && screen().getMaxDisableResize()) | ||
3510 | return; | ||
3511 | |||
3506 | m_resize_corner = dir; | 3512 | m_resize_corner = dir; |
3507 | 3513 | ||
3508 | resizing = true; | 3514 | resizing = true; |