aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
authormathias <mathias>2005-03-16 23:19:36 (GMT)
committermathias <mathias>2005-03-16 23:19:36 (GMT)
commitd6befe5371c5df7d719cb184c4d20e38dc841a13 (patch)
treefc4a6e98a0cfd804eab303b8d5950de9b74c355f /src/Window.cc
parentac3fa211bbc79531151e1400404192b1d7e8516f (diff)
downloadfluxbox_pavel-d6befe5371c5df7d719cb184c4d20e38dc841a13.zip
fluxbox_pavel-d6befe5371c5df7d719cb184c4d20e38dc841a13.tar.bz2
fix for gravity field on _NET_MOVERESIZE_WINDOW messages, patch from Rob Stevens <stever3 at nycap dot rr dot com>
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 0bee703..e1fea07 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -1387,6 +1387,29 @@ void FluxboxWindow::moveResize(int new_x, int new_y,
1387 1387
1388} 1388}
1389 1389
1390void FluxboxWindow::moveResizeForClient(int new_x, int new_y,
1391 unsigned int new_width, unsigned int new_height, int gravity) {
1392
1393 // magic to detect if moved during initialisation
1394 if (!isInitialized())
1395 m_old_pos_x = 1;
1396 frame().moveResizeForClient(new_x, new_y, new_width, new_height, true, true, gravity);
1397 setFocusFlag(focused);
1398 shaded = false;
1399 sendConfigureNotify();
1400
1401 shape();
1402
1403 if (!moving) {
1404 m_last_resize_x = new_x;
1405 m_last_resize_y = new_y;
1406 }
1407
1408}
1409
1410
1411
1412
1390// returns whether the focus was "set" to this window 1413// returns whether the focus was "set" to this window
1391// it doesn't guarantee that it has focus, but says that we have 1414// it doesn't guarantee that it has focus, but says that we have
1392// tried. A FocusqIn event should eventually arrive for that 1415// tried. A FocusqIn event should eventually arrive for that