Set up correct initial values for override redirect windows
As a sideffect of commit a576f7a1ea
, 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;
|
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);
|
meta_display_register_x_window (display, &window->xwindow, window);
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user