Skip to content
Browse files
Fixes move_to_center moving window between monitors
  • Loading branch information
ozeidan authored and raveit65 committed Feb 13, 2018
1 parent 9ed8fa4 commit 63656492e2516e986ada3e273b8b9a6275d5ad08
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 6365649

Please sign in to comment.