diff options
author | Omar Zeidan <[email protected]> | 2018-02-12 17:32:17 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-02-13 18:40:23 +0100 |
commit | 79f998c1583437f11f4aea3f67075cd520311216 (patch) | |
tree | 0badc86f72430ebe26405d4fd9f8cf1c00b611d6 /src | |
parent | 9ed8fa4daf8024b603a307f35b57982dab61e65b (diff) | |
download | marco-79f998c1583437f11f4aea3f67075cd520311216.tar.bz2 marco-79f998c1583437f11f4aea3f67075cd520311216.tar.xz |
Fixes move_to_center moving window between monitors
Diffstat (limited to 'src')
-rw-r--r-- | src/core/keybindings.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/keybindings.c b/src/core/keybindings.c index d126eb0c..5b56fb2e 100644 --- a/src/core/keybindings.c +++ b/src/core/keybindings.c @@ -2652,12 +2652,16 @@ handle_move_to_center (MetaDisplay *display, XEvent *event, MetaKeyBinding *binding) { + const MetaXineramaScreenInfo* current; MetaRectangle work_area; MetaRectangle outer; int orig_x, orig_y; int frame_width, frame_height; - meta_window_get_work_area_all_xineramas (window, &work_area); + current = meta_screen_get_xinerama_for_window(screen, window); + meta_window_get_work_area_for_xinerama (window, + current->number, + &work_area); meta_window_get_outer_rect (window, &outer); meta_window_get_position (window, &orig_x, &orig_y); |