[mutter] Set up correct initial values for override redirect windows
- From: Tomas Frydrych <tomasf src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [mutter] Set up correct initial values for override redirect windows
- Date: Sat, 1 Aug 2009 08:11:09 +0000 (UTC)
commit c9e0613b531064e38dfd639ed602bb56d0e85384
Author: Tomas Frydrych <tf linux intel com>
Date: Sat Aug 1 09:04:17 2009 +0100
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 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index cbad732..b677cee 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]