From c9e0613b531064e38dfd639ed602bb56d0e85384 Mon Sep 17 00:00:00 2001 From: Tomas Frydrych Date: Sat, 1 Aug 2009 09:04:17 +0100 Subject: [PATCH] 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. --- src/core/window.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/core/window.c b/src/core/window.c index cbad732b3..b677ceee7 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -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);