[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 20 of 22] Fixed segfault when unhiding an application in certain conditions (seen
- Subject: [PATCH 20 of 22] Fixed segfault when unhiding an application in certain conditions (seen
- From: "John H. Robinson, IV" <jaqque (at) sbih (dot) org>
- Date: Wed, 29 Oct 2008 01:33:11 -0700
- Message-id: <e07d85ba8a2719cdd2e5 (dot) 1225269191 (at) chao (dot) ucsd (dot) edu>
# HG changeset patch
# User Dan Pascu <dan@ag-projects.com>
# Date 1146165418 25200
# Branch wm_0_92
# Node ID e07d85ba8a2719cdd2e50715405bac2cc7e69f6c
# Parent 3f2715bc97c1838f813417deae01a0cb5324d192
Fixed segfault when unhiding an application in certain conditions (seen
with KDE applications with transient windows)
(transplanted from 529b0b167d127d238375cda9c219d417155f1732)
diff -r 3f2715bc97c1 -r e07d85ba8a27 ChangeLog
--- a/ChangeLog Wed Apr 26 19:48:18 2006 -0700
+++ b/ChangeLog Thu Apr 27 12:16:58 2006 -0700
@@ -39,6 +39,8 @@
configuration file (Stanislav Maslovski <stanislav.maslovski@gmail.com>)
- 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)
diff -r 3f2715bc97c1 -r e07d85ba8a27 src/actions.c
--- a/src/actions.c Wed Apr 26 19:48:18 2006 -0700
+++ b/src/actions.c Thu Apr 27 12:16:58 2006 -0700
@@ -1485,9 +1485,10 @@
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));
--
To unsubscribe, send mail to wmaker-dev-unsubscribe@lists.windowmaker.info.