From 4e8423d18a42c39b481510ddc78272e46a3a9e1e Mon Sep 17 00:00:00 2001 From: dan Date: Thu, 27 Apr 2006 19:16:58 +0000 Subject: [PATCH] Fixed segfault when unhiding an application in certain conditions (seen with KDE applications with transient windows) --- ChangeLog | 2 ++ src/actions.c | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 534a363f..d0c53b58 100644 --- a/ChangeLog +++ b/ChangeLog @@ -39,6 +39,8 @@ Changes since version 0.92.0: configuration file (Stanislav Maslovski ) - Removed WINGs' dependency on rgb.txt (from X11) and issues with locating it on the filesystem for different systems/distributions. +- Fixed segfault when unhiding an application in certain conditions (seen + with KDE applications with transient windows) Changes since version 0.91.0: diff --git a/src/actions.c b/src/actions.c index 9298bd20..0b3acbea 100644 --- a/src/actions.c +++ b/src/actions.c @@ -1485,9 +1485,10 @@ wUnhideApplication(WApplication *wapp, Bool miniwindows, Bool bringToCurrentWS) focused = wlist; if (wlist->flags.miniaturized) { - if (bringToCurrentWS || wPreferences.sticky_icons || - wlist->frame->workspace == scr->current_workspace) { - if (wlist->icon && !wlist->icon->mapped) { + if ((bringToCurrentWS || wPreferences.sticky_icons || + wlist->frame->workspace == scr->current_workspace) && + wlist->icon) { + if (!wlist->icon->mapped) { int x, y; PlaceIcon(scr, &x, &y, wGetHeadForWindow(wlist)); -- 2.11.4.GIT