Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixes move_to_center moving window between monitors
  • Loading branch information
Omar Zeidan authored and raveit65 committed Feb 13, 2018
1 parent 9ed8fa4 commit 6365649
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/core/keybindings.c
Expand Up @@ -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);

Expand Down

0 comments on commit 6365649

Please sign in to comment.