0002-window-Force-update-monitor-on-hot-plugs.patch
This commit is contained in:
parent
4035955fc0
commit
37bbea649b
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user