[mutter/wip/fmuellner/contraint-tiling: 2/15] window: Update tile monitor before move
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/fmuellner/contraint-tiling: 2/15] window: Update tile monitor before move
- Date: Tue, 3 Oct 2017 18:25:39 +0000 (UTC)
commit 4c2024e5fefa00f57e46e91d65363392679728e8
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Jun 15 21:29:48 2017 -0300
window: Update tile monitor before move
The actual move may involve the tile monitor, so make sure to not use
an outdated value by setting it before calling move_between_rects().
https://bugzilla.gnome.org/show_bug.cgi?id=645153
src/core/window.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index adacd8d..1a0474c 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -3971,6 +3971,9 @@ meta_window_move_to_monitor (MetaWindow *window,
{
MetaRectangle old_area, new_area;
+ if (window->tile_mode != META_TILE_NONE)
+ window->tile_monitor_number = monitor;
+
meta_window_get_work_area_for_monitor (window,
window->monitor->number,
&old_area);
@@ -3992,9 +3995,6 @@ meta_window_move_to_monitor (MetaWindow *window,
meta_window_move_between_rects (window, &old_area, &new_area);
}
- if (window->tile_mode != META_TILE_NONE)
- window->tile_monitor_number = monitor;
-
window->preferred_output_winsys_id = window->monitor->winsys_id;
if (window->fullscreen || window->override_redirect)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]