[mutter/gtk3-ci: 13/18] window: Set fall-back tile monitor if not set
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gtk3-ci: 13/18] window: Set fall-back tile monitor if not set
- Date: Wed, 15 Apr 2020 14:00:44 +0000 (UTC)
commit c413dd90785e920916993f06f1baac85b30d060e
Author: Jonas Ådahl <jadahl gmail com>
Date: Thu Apr 2 19:05:21 2020 +0200
window: Set fall-back tile monitor if not set
When tiling, we want to set the tile monitor. To not have to do this
from the call site, make meta_window_tile() fall back to the current
monitor if nothing set it prior to the call.
This will make it more convenient for test cases that what to test
tiling.
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1171
src/core/window.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/core/window.c b/src/core/window.c
index b66ae67f3..f4d7b02ff 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -3180,6 +3180,10 @@ meta_window_tile (MetaWindow *window,
window->tile_monitor_number = -1;
return;
}
+ else
+ {
+ window->tile_monitor_number = window->monitor->number;
+ }
if (window->tile_mode == META_TILE_MAXIMIZED)
directions = META_MAXIMIZE_BOTH;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]