mirror of
https://github.com/brl/mutter.git
synced 2025-02-02 06:42:28 +00:00
Set up correct initial values for override redirect windows
As a sideffect of commit a576f7a1ea98840dd3c83f011f78583c1437fba1, override redirect windows of type _NET_WM_WINDOW_TYPE_NORMAL do not have their features recalculated during MetaWindow construction (same as regular windows of type _NET_WM_WINDOW_TYPE_NORMAL), so we need to set the initial values accordingly.
This commit is contained in:
parent
a576f7a1ea
commit
c9e0613b53
@ -762,6 +762,16 @@ meta_window_new_with_attrs (MetaDisplay *display,
|
||||
|
||||
window->compositor_private = NULL;
|
||||
|
||||
if (window->override_redirect)
|
||||
{
|
||||
window->decorated = FALSE;
|
||||
window->always_sticky = TRUE;
|
||||
window->has_close_func = FALSE;
|
||||
window->has_shade_func = FALSE;
|
||||
window->has_move_func = FALSE;
|
||||
window->has_resize_func = FALSE;
|
||||
}
|
||||
|
||||
meta_display_register_x_window (display, &window->xwindow, window);
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user