[mutter/wip/texture-purge-on-nvidia: 13/66] 0002-window-Force-update-monitor-on-hot-plugs.patch
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/texture-purge-on-nvidia: 13/66] 0002-window-Force-update-monitor-on-hot-plugs.patch
- Date: Tue, 8 Jan 2019 21:59:28 +0000 (UTC)
commit 193fa08ff253897a5d551bf7b41755069d4534fa
Author: Ray Strode <rstrode redhat com>
Date: Tue Jan 8 09:43:15 2019 -0500
0002-window-Force-update-monitor-on-hot-plugs.patch
src/core/window-private.h | 1 +
src/core/window.c | 4 ++--
src/wayland/meta-window-wayland.c | 2 +-
3 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/core/window-private.h b/src/core/window-private.h
index bed2fc7f6..8552829b2 100644
--- a/src/core/window-private.h
+++ b/src/core/window-private.h
@@ -125,6 +125,7 @@ typedef enum _MetaWindowUpdateMonitorFlags
{
META_WINDOW_UPDATE_MONITOR_FLAGS_NONE = 0,
META_WINDOW_UPDATE_MONITOR_FLAGS_USER_OP = 1 << 0,
+ META_WINDOW_UPDATE_MONITOR_FLAGS_FORCE = 1 << 1,
} MetaWindowUpdateMonitorFlags;
typedef struct _MetaPlacementRule
diff --git a/src/core/window.c b/src/core/window.c
index ad4059704..07f826bb5 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -3803,7 +3803,7 @@ meta_window_update_for_monitors_changed (MetaWindow *window)
if (window->override_redirect || window->type == META_WINDOW_DESKTOP)
{
meta_window_update_monitor (window,
- META_WINDOW_UPDATE_MONITOR_FLAGS_NONE);
+ META_WINDOW_UPDATE_MONITOR_FLAGS_FORCE);
return;
}
@@ -3839,7 +3839,7 @@ meta_window_update_for_monitors_changed (MetaWindow *window)
else
{
meta_window_update_monitor (window,
- META_WINDOW_UPDATE_MONITOR_FLAGS_NONE);
+ META_WINDOW_UPDATE_MONITOR_FLAGS_FORCE);
}
}
diff --git a/src/wayland/meta-window-wayland.c b/src/wayland/meta-window-wayland.c
index 7bedc9ac3..7f5787006 100644
--- a/src/wayland/meta-window-wayland.c
+++ b/src/wayland/meta-window-wayland.c
@@ -413,7 +413,7 @@ meta_window_wayland_update_main_monitor (MetaWindow *window,
return;
}
- if (flags & META_WINDOW_UPDATE_MONITOR_FLAGS_USER_OP)
+ if (flags & META_WINDOW_UPDATE_MONITOR_FLAGS_FORCE)
{
window->monitor = to;
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]