diff options
author | simonb <simonb> | 2006-06-19 23:09:51 (GMT) |
---|---|---|
committer | simonb <simonb> | 2006-06-19 23:09:51 (GMT) |
commit | 94db19c00720ef65f847ee6f02c12b9d11d5ee02 (patch) | |
tree | 6aed7179dde8dd30e3355c505f15294603609c4e /src | |
parent | d94bacca01dd3c6dc34b5fcae13d4f66e8c7bb24 (diff) | |
download | fluxbox_lack-94db19c00720ef65f847ee6f02c12b9d11d5ee02.zip fluxbox_lack-94db19c00720ef65f847ee6f02c12b9d11d5ee02.tar.bz2 |
Fix window placement when apps remembers size but not location
Diffstat (limited to 'src')
-rw-r--r-- | src/Window.cc | 7 |
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 | ||
1290 | void FluxboxWindow::resize(unsigned int width, unsigned int height) { | 1290 | void 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 |