From 6077c26cdf57523b5d0a1c2fc2d3a7ddf649453d Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Wed, 29 May 2002 03:54:00 +0000 Subject: [PATCH] handle missing frame, prevents segv with undecorated windows. #83298 2002-05-28 Havoc Pennington * src/window.c (redraw_icon): handle missing frame, prevents segv with undecorated windows. #83298 --- ChangeLog | 5 +++++ src/window.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index bf3082598..e9212541b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-05-28 Havoc Pennington + + * src/window.c (redraw_icon): handle missing frame, prevents segv + with undecorated windows. #83298 + 2002-05-28 Havoc Pennington Patch from Erwann Chenede for raise_or_lower keybinding diff --git a/src/window.c b/src/window.c index 305f18d36..d2857b9d0 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*