diff options
Diffstat (limited to 'src/Remember.cc')
-rw-r--r-- | src/Remember.cc | 8 |
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; |