diff options
author | Danny Baumann <dannybaumann@web.de> | 2008-03-01 21:35:08 +0100 |
---|---|---|
committer | Danny Baumann <dannybaumann@web.de> | 2008-03-01 21:35:08 +0100 |
commit | 6f4081a1cb0a6359703c64e13f019bb8c137275f (patch) | |
tree | 3ccba94e3964ada1c1ddccbac809564fe99208bd /gtk | |
parent | 5b6444bfc1bce38cb8c516c13b7dd99083bcf333 (diff) |
Don't try to get button positions for undecorated windows.
Reference: https://bugs.freedesktop.org/show_bug.cgi?id=14729
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/window-decorator/gtk-window-decorator.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/window-decorator/gtk-window-decorator.c b/gtk/window-decorator/gtk-window-decorator.c index 1bb8bf4d..517a199a 100644 --- a/gtk/window-decorator/gtk-window-decorator.c +++ b/gtk/window-decorator/gtk-window-decorator.c @@ -2918,6 +2918,12 @@ meta_get_button_position (decor_t *d, GdkRectangle *space; #endif + if (!d->context) + { + /* undecorated windows implicitly have no buttons */ + return FALSE; + } + theme = meta_theme_get_current (); meta_get_decoration_geometry (d, theme, &flags, &fgeom, &button_layout, |