summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Window.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 7703f96..32f4dd2 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -1288,7 +1288,14 @@ void FluxboxWindow::move(int x, int y, int gravity) {
1288} 1288}
1289 1289
1290void FluxboxWindow::resize(unsigned int width, unsigned int height) { 1290void FluxboxWindow::resize(unsigned int width, unsigned int height) {
1291 int old_x = m_old_pos_x;
1292
1291 moveResize(frame().x(), frame().y(), width, height); 1293 moveResize(frame().x(), frame().y(), width, height);
1294
1295 // magic to detect if moved during initialisation
1296 // we restore the old state, because we were a resize, not a moveResize!
1297 if (!isInitialized())
1298 m_old_pos_x = old_x;
1292} 1299}
1293 1300
1294// send_event is just an override 1301// send_event is just an override