[mutter/wip/texture-purge-on-nvidia: 13/71] 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/71] 0002-window-Force-update-monitor-on-hot-plugs.patch
- Date: Mon, 14 Jan 2019 21:00:07 +0000 (UTC)
commit 37bbea649b190b60c2cedc879e27cd7a81b3b519
Author: Ray Strode <rstrode redhat com>
Date: Mon Jan 14 10:06:44 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]