1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-07 14:24:14 +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:
dan
1999-11-17 22:01:33 +00:00
parent 06b390ca01
commit 1d56ad7615
3 changed files with 22 additions and 25 deletions

View File

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