aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormarkt <markt>2007-03-18 23:49:54 (GMT)
committermarkt <markt>2007-03-18 23:49:54 (GMT)
commitb3f7488a8deb5b51cdbbc3673eb26b1611ef5110 (patch)
tree8feccd0c358875e446eb75a6e4eea9ae407a5682 /src
parent4945b88e1b08fe88bcae8f0c8b571b8b379045b5 (diff)
downloadfluxbox_pavel-b3f7488a8deb5b51cdbbc3673eb26b1611ef5110.zip
fluxbox_pavel-b3f7488a8deb5b51cdbbc3673eb26b1611ef5110.tar.bz2
changed remembering of positions so it only remembers position relative to the current head
that way, the windows don't get misplaced when the window is on second head, or when not using the head anymore
Diffstat (limited to 'src')
-rw-r--r--src/Remember.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Remember.cc b/src/Remember.cc
index 2b8fbce..e0a7b0f 100644
--- a/src/Remember.cc
+++ b/src/Remember.cc
@@ -928,9 +928,13 @@ void Remember::rememberAttrib(WinClient &winclient, Attribute attrib) {
928 //!! Note: This is odd, why dont we need to substract border width on win->width() ? 928 //!! Note: This is odd, why dont we need to substract border width on win->width() ?
929 app->rememberDimensions(win->width(), win->height() - 2 * win->fbWindow().borderWidth()); 929 app->rememberDimensions(win->width(), win->height() - 2 * win->fbWindow().borderWidth());
930 break; 930 break;
931 case REM_POSITION: 931 case REM_POSITION: {
932 app->rememberPosition(win->x(), win->y()); 932 int head = win->screen().getHead(win->fbWindow());
933 int head_x = win->screen().getHeadX(head);
934 int head_y = win->screen().getHeadY(head);
935 app->rememberPosition(win->x() - head_x, win->y() - head_y);
933 break; 936 break;
937 }
934 case REM_FOCUSHIDDENSTATE: 938 case REM_FOCUSHIDDENSTATE:
935 app->rememberFocusHiddenstate(win->isFocusHidden()); 939 app->rememberFocusHiddenstate(win->isFocusHidden());
936 break; 940 break;