Fix window placement when apps remembers size but not location

This commit is contained in:
simonb 2006-06-19 23:09:51 +00:00
parent d94bacca01
commit 94db19c007
2 changed files with 10 additions and 0 deletions

View file

@ -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

View file

@ -1288,7 +1288,14 @@ void FluxboxWindow::move(int x, int y, int 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