[mutter] keybindings: Limit corner move to current monitor
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] keybindings: Limit corner move to current monitor
- Date: Wed, 14 Nov 2018 08:40:48 +0000 (UTC)
commit 6c5baf89ede6ea4e52724194003aae4f70427677
Author: Jānis Džeriņš <smuglispweenie gmail com>
Date: Tue Sep 25 20:59:43 2018 +0300
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
src/core/keybindings.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/core/keybindings.c b/src/core/keybindings.c
index 968754938..3830492a9 100644
--- a/src/core/keybindings.c
+++ b/src/core/keybindings.c
@@ -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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]