diff options
author | markt <markt> | 2007-03-18 23:49:54 (GMT) |
---|---|---|
committer | markt <markt> | 2007-03-18 23:49:54 (GMT) |
commit | b3f7488a8deb5b51cdbbc3673eb26b1611ef5110 (patch) | |
tree | 8feccd0c358875e446eb75a6e4eea9ae407a5682 | |
parent | 4945b88e1b08fe88bcae8f0c8b571b8b379045b5 (diff) | |
download | fluxbox_lack-b3f7488a8deb5b51cdbbc3673eb26b1611ef5110.zip fluxbox_lack-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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/Remember.cc | 8 |
2 files changed, 10 insertions, 3 deletions
@@ -1,8 +1,11 @@ | |||
1 | (Format: Year/Month/Day) | 1 | (Format: Year/Month/Day) |
2 | Changes for 1.0rc3: | 2 | Changes for 1.0rc3: |
3 | *07/03/18: | 3 | *07/03/18: |
4 | * Changed position remembering so it only remembers position relative to the | ||
5 | current head (Mark) | ||
6 | Remember.cc | ||
4 | * Fixed problem with new mouse binding code when using emacs keychains (Mark) | 7 | * Fixed problem with new mouse binding code when using emacs keychains (Mark) |
5 | Keys.cc/hh | 8 | Keys.hh |
6 | *07/03/17: | 9 | *07/03/17: |
7 | * Iconified, stuck windows weren't being moved to different workspaces (Mark) | 10 | * Iconified, stuck windows weren't being moved to different workspaces (Mark) |
8 | Screen.cc | 11 | Screen.cc |
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; |