mirror of
https://github.com/gryf/wmaker.git
synced 2026-11-21 06:27:03 +01:00
- Fixed problem calling W_FlushIdleNotificationQueue() when there was no idle
handler installed. - Fixed some problem with ASAP notification queues - fixed a memleak related to notification queues.
This commit is contained in:
1 parent
06b390ca01
commit
1d56ad7615
3 files changed
+22
-25
No files matched your search
@@ -217,8 +217,6 @@ WMPostNotification(WMNotification *notification)
|
||||
}
|
||||
|
||||
WMReleaseNotification(notification);
|
||||
|
||||
W_FlushASAPNotificationQueue();
|
||||
}
|
||||
|
||||
|
||||
@@ -491,7 +489,8 @@ WMEnqueueCoalesceNotification(WMNotificationQueue *queue,
|
||||
switch (postingStyle) {
|
||||
case WMPostNow:
|
||||
WMPostNotification(notification);
|
||||
break;
|
||||
WMReleaseNotification(notification);
|
||||
break;
|
||||
|
||||
case WMPostASAP:
|
||||
WMPutInBag(queue->asapQueue, notification);
|
||||
@@ -514,7 +513,8 @@ W_FlushASAPNotificationQueue()
|
||||
WMNotification *tmp = WMGetFromBag(queue->asapQueue, 0);
|
||||
|
||||
WMPostNotification(tmp);
|
||||
WMDeleteFromBag(queue->asapQueue, 0);
|
||||
WMReleaseNotification(tmp);
|
||||
WMDeleteFromBag(queue->asapQueue, 0);
|
||||
}
|
||||
|
||||
queue = queue->next;
|
||||
@@ -532,6 +532,7 @@ W_FlushIdleNotificationQueue()
|
||||
WMNotification *tmp = WMGetFromBag(queue->idleQueue, 0);
|
||||
|
||||
WMPostNotification(tmp);
|
||||
WMReleaseNotification(tmp);
|
||||
WMDeleteFromBag(queue->idleQueue, 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user