[mutter] window.c: use a consistent mapping from frame_type => decorated
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] window.c: use a consistent mapping from frame_type => decorated
- Date: Mon, 17 Oct 2011 19:10:33 +0000 (UTC)
commit f94f008ed601286db38bd4a3f43d6d20672a8a0e
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Mon Oct 17 11:42:35 2011 -0400
window.c: use a consistent mapping from frame_type => decorated
If a window had a type hint intended for override-redirect windows
like NOTIFICATION, we ended up with a window that was decorated but
with a frame type of FRAME_TYPE_LAST, causing assertion failures.
Fix this by making recalc_window_features() just call
meta_window_get_frame_type().
https://bugzilla.gnome.org/show_bug.cgi?id=599988
src/core/window.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index d36e218..4ef9532 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -7754,10 +7754,8 @@ recalc_window_features (MetaWindow *window)
window->override_redirect)
window->always_sticky = TRUE;
- if (window->type == META_WINDOW_DESKTOP ||
- window->type == META_WINDOW_DOCK ||
- window->type == META_WINDOW_SPLASHSCREEN ||
- window->override_redirect)
+ if (window->override_redirect ||
+ meta_window_get_frame_type (window) == META_FRAME_TYPE_LAST)
{
window->decorated = FALSE;
window->has_close_func = FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]