window: Handle layer of DOCK windows
Assigning the corresponding stack layer of DOCK windows is currently X11 specific, because there is no way for wayland clients to set the DOCK window type. This is about to change, so move the code to the generic layer handling. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3612>
This commit is contained in:
@ -6099,6 +6099,13 @@ meta_window_get_default_layer (MetaWindow *window)
|
||||
return META_LAYER_TOP;
|
||||
else if (window->type == META_WINDOW_DESKTOP)
|
||||
return META_LAYER_DESKTOP;
|
||||
else if (window->type == META_WINDOW_DOCK)
|
||||
{
|
||||
if (window->monitor && window->monitor->in_fullscreen)
|
||||
return META_LAYER_BOTTOM;
|
||||
else
|
||||
return META_LAYER_DOCK;
|
||||
}
|
||||
else
|
||||
return META_LAYER_NORMAL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user