diff options
author | Omar Zeidan <[email protected]> | 2018-02-12 17:32:17 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-02-13 18:40:58 +0100 |
commit | a17f588b7ff2a97c94d42650fff52b9dc0091f8e (patch) | |
tree | 4cf8e916d2816b68138c1f3d4bf428a4c3aec10f | |
parent | f7d762523b1ec7e98618f6158de16ddc86f7f602 (diff) | |
download | marco-a17f588b7ff2a97c94d42650fff52b9dc0091f8e.tar.bz2 marco-a17f588b7ff2a97c94d42650fff52b9dc0091f8e.tar.xz |
Fixes move_to_center moving window between monitors
-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 09283399..467716ad 100644 --- a/src/core/keybindings.c +++ b/src/core/keybindings.c @@ -2636,12 +2636,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); |