all repos — fluxbox @ 94db19c00720ef65f847ee6f02c12b9d11d5ee02

custom fork of the fluxbox windowmanager

 Fix window placement when apps remembers size but not location
simonb simonb
commit

94db19c00720ef65f847ee6f02c12b9d11d5ee02

parent

d94bacca01dd3c6dc34b5fcae13d4f66e8c7bb24

2 files changed, 10 insertions(+), 0 deletions(-)

jump to
M ChangeLogChangeLog

@@ -1,5 +1,8 @@

(Format: Year/Month/Day) Changes for 1.0rc2: +*06/06/20: + * Fix window placement when apps remembers size but not location (Simon) + Window.cc *06/06/19: * Add EUC-KR to ko_KR encodings (Simon) nls/ko_KR/ Makefile.am generated-EUC-KR.m
M src/Window.ccsrc/Window.cc

@@ -1288,7 +1288,14 @@ moveResize(x, y, frame().width(), frame().height(), gravity);

} void FluxboxWindow::resize(unsigned int width, unsigned int height) { + int old_x = m_old_pos_x; + moveResize(frame().x(), frame().y(), width, height); + + // magic to detect if moved during initialisation + // we restore the old state, because we were a resize, not a moveResize! + if (!isInitialized()) + m_old_pos_x = old_x; } // send_event is just an override