summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-05-29 03:54:00 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-05-29 03:54:00 +0000
commit6077c26cdf57523b5d0a1c2fc2d3a7ddf649453d (patch)
tree90e2b0afe20a999a34ddc0cdd3c9a726811edf8d /src/window.c
parent0498d55314582293a72c7edf8b33b8f362340456 (diff)
downloadmetacity-6077c26cdf57523b5d0a1c2fc2d3a7ddf649453d.tar.gz
metacity-6077c26cdf57523b5d0a1c2fc2d3a7ddf649453d.tar.bz2
handle missing frame, prevents segv with undecorated windows. #83298
2002-05-28 Havoc Pennington <hp@pobox.com> * src/window.c (redraw_icon): handle missing frame, prevents segv with undecorated windows. #83298
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c
index 305f18d..d2857b9 100644
--- a/src/window.c
+++ b/src/window.c
@@ -4624,7 +4624,8 @@ static void
redraw_icon (MetaWindow *window)
{
/* We could probably be smart and just redraw the icon here. */
- meta_ui_queue_frame_draw (window->screen->ui, window->frame->xwindow);
+ if (window->frame)
+ meta_ui_queue_frame_draw (window->screen->ui, window->frame->xwindow);
}
static GList*