1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 21:08:08 +01:00

Fixed segfault when unhiding an application in certain conditions (seen

with KDE applications with transient windows)
This commit is contained in:
dan
2006-04-27 19:16:58 +00:00
parent a5aa8573c9
commit 4e8423d18a
2 changed files with 6 additions and 3 deletions

View File

@@ -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));