aboutsummaryrefslogtreecommitdiff
path: root/src/Remember.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-07-02 21:26:01 (GMT)
committermarkt <markt>2007-07-02 21:26:01 (GMT)
commit2ddc0290cb7bed695afab3ca7e8b130b76e66793 (patch)
tree78f48421785e39e696e6fed602484af91555e4e4 /src/Remember.cc
parentb00d53eb728532bb9bb8cc386008532f31aed657 (diff)
downloadfluxbox-2ddc0290cb7bed695afab3ca7e8b130b76e66793.zip
fluxbox-2ddc0290cb7bed695afab3ca7e8b130b76e66793.tar.bz2
use old size/position in apps file when the window is shaded or maximized
Diffstat (limited to 'src/Remember.cc')
-rw-r--r--src/Remember.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Remember.cc b/src/Remember.cc
index 12b5097..30a3e14 100644
--- a/src/Remember.cc
+++ b/src/Remember.cc
@@ -905,13 +905,13 @@ void Remember::rememberAttrib(WinClient &winclient, Attribute attrib) {
905 break; 905 break;
906 case REM_DIMENSIONS: 906 case REM_DIMENSIONS:
907 //!! Note: This is odd, why dont we need to substract border width on win->width() ? 907 //!! Note: This is odd, why dont we need to substract border width on win->width() ?
908 app->rememberDimensions(win->width(), win->height() - 2 * win->fbWindow().borderWidth()); 908 app->rememberDimensions(win->normalWidth(), win->normalHeight() - 2 * win->fbWindow().borderWidth());
909 break; 909 break;
910 case REM_POSITION: { 910 case REM_POSITION: {
911 int head = win->screen().getHead(win->fbWindow()); 911 int head = win->screen().getHead(win->fbWindow());
912 int head_x = win->screen().getHeadX(head); 912 int head_x = win->screen().getHeadX(head);
913 int head_y = win->screen().getHeadY(head); 913 int head_y = win->screen().getHeadY(head);
914 app->rememberPosition(win->x() - head_x, win->y() - head_y); 914 app->rememberPosition(win->normalX() - head_x, win->normalY() - head_y);
915 break; 915 break;
916 } 916 }
917 case REM_FOCUSHIDDENSTATE: 917 case REM_FOCUSHIDDENSTATE: