Skip to content
Browse files

Fixes move_to_center moving window between monitors

  • Loading branch information...
ozeidan authored and raveit65 committed Feb 12, 2018
1 parent 9ed8fa4 commit 79f998c1583437f11f4aea3f67075cd520311216
Showing with 5 additions and 1 deletion.
  1. +5 −1 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,
meta_window_get_outer_rect (window, &outer);
meta_window_get_position (window, &orig_x, &orig_y);

0 comments on commit 79f998c

Please sign in to comment.
You can’t perform that action at this time.