summaryrefslogtreecommitdiff
path: root/src/core/keybindings.c
diff options
context:
space:
mode:
authorOmar Zeidan <[email protected]>2018-02-12 17:32:17 +0100
committerraveit65 <[email protected]>2018-02-13 15:53:28 +0100
commit63656492e2516e986ada3e273b8b9a6275d5ad08 (patch)
tree0badc86f72430ebe26405d4fd9f8cf1c00b611d6 /src/core/keybindings.c
parent9ed8fa4daf8024b603a307f35b57982dab61e65b (diff)
downloadmarco-63656492e2516e986ada3e273b8b9a6275d5ad08.tar.bz2
marco-63656492e2516e986ada3e273b8b9a6275d5ad08.tar.xz
Fixes move_to_center moving window between monitors
Diffstat (limited to 'src/core/keybindings.c')
-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 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);