mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
window: Properly update window->monitor for the desktop window
We don't want to move the desktop window but we still need to update window->monitor or otherwise we'll be left with a pointer to invalid memory. https://bugzilla.gnome.org/show_bug.cgi?id=757148
This commit is contained in:
parent
2750db2a89
commit
76e816a14f
@ -3534,10 +3534,7 @@ meta_window_update_for_monitors_changed (MetaWindow *window)
|
|||||||
{
|
{
|
||||||
const MetaMonitorInfo *old, *new;
|
const MetaMonitorInfo *old, *new;
|
||||||
|
|
||||||
if (window->type == META_WINDOW_DESKTOP)
|
if (window->override_redirect || window->type == META_WINDOW_DESKTOP)
|
||||||
return;
|
|
||||||
|
|
||||||
if (window->override_redirect)
|
|
||||||
{
|
{
|
||||||
meta_window_update_monitor (window, FALSE);
|
meta_window_update_monitor (window, FALSE);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user