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
This commit is contained in:
Havoc Pennington 2002-05-29 03:54:00 +00:00 committed by Havoc Pennington
parent 0498d55314
commit 6077c26cdf
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-05-28 Havoc Pennington <hp@pobox.com>
* src/window.c (redraw_icon): handle missing frame, prevents segv
with undecorated windows. #83298
2002-05-28 Havoc Pennington <hp@pobox.com>
Patch from Erwann Chenede for raise_or_lower keybinding

View File

@ -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*