summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Zeidan <[email protected]>2018-02-12 17:32:17 +0100
committerraveit65 <[email protected]>2018-02-13 18:40:58 +0100
commita17f588b7ff2a97c94d42650fff52b9dc0091f8e (patch)
tree4cf8e916d2816b68138c1f3d4bf428a4c3aec10f
parentf7d762523b1ec7e98618f6158de16ddc86f7f602 (diff)
downloadmarco-a17f588b7ff2a97c94d42650fff52b9dc0091f8e.tar.bz2
marco-a17f588b7ff2a97c94d42650fff52b9dc0091f8e.tar.xz
Fixes move_to_center moving window between monitors
-rw-r--r--src/core/keybindings.c6
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);