mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
keybindings: Limit corner move to current monitor
Moving windows using `move-to-side-X` and `move-corner-XX` keybindings should keep windows within the confines of current screen. `move-to-monitor-XXX` keybindings can be used to move windows to other monitors. Closes: https://gitlab.gnome.org/GNOME/mutter/issues/320
This commit is contained in:
parent
9a12befd22
commit
6c5baf89ed
@ -2839,7 +2839,10 @@ handle_move_to_corner_backend (MetaDisplay *display,
|
||||
MetaRectangle frame_rect;
|
||||
int new_x, new_y;
|
||||
|
||||
meta_window_get_work_area_all_monitors (window, &work_area);
|
||||
if (!window->monitor)
|
||||
return;
|
||||
|
||||
meta_window_get_work_area_current_monitor (window, &work_area);
|
||||
meta_window_get_frame_rect (window, &frame_rect);
|
||||
|
||||
switch (gravity)
|
||||
|
Loading…
Reference in New Issue
Block a user