aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsimonb <simonb>2006-06-19 23:09:51 (GMT)
committersimonb <simonb>2006-06-19 23:09:51 (GMT)
commit94db19c00720ef65f847ee6f02c12b9d11d5ee02 (patch)
tree6aed7179dde8dd30e3355c505f15294603609c4e
parentd94bacca01dd3c6dc34b5fcae13d4f66e8c7bb24 (diff)
downloadfluxbox_paul-94db19c00720ef65f847ee6f02c12b9d11d5ee02.zip
fluxbox_paul-94db19c00720ef65f847ee6f02c12b9d11d5ee02.tar.bz2
Fix window placement when apps remembers size but not location
-rw-r--r--ChangeLog3
-rw-r--r--src/Window.cc7
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 7c8a538..46c2fe5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
1 (Format: Year/Month/Day) 1 (Format: Year/Month/Day)
2Changes for 1.0rc2: 2Changes for 1.0rc2:
3*06/06/20:
4 * Fix window placement when apps remembers size but not location (Simon)
5 Window.cc
3*06/06/19: 6*06/06/19:
4 * Add EUC-KR to ko_KR encodings (Simon) 7 * Add EUC-KR to ko_KR encodings (Simon)
5 nls/ko_KR/ Makefile.am generated-EUC-KR.m 8 nls/ko_KR/ Makefile.am generated-EUC-KR.m
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