0002-window-Force-update-monitor-on-hot-plugs.patch

This commit is contained in:
Ray Strode 2019-01-14 10:06:44 -05:00
parent 4035955fc0
commit 37bbea649b
3 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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);
}
}

View File

@ -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;