add: void *n;  if (mask & WNCOnName) { while ((n = lfind(notification->name, queue->asapQueue, matchName))) { queue->asapQueue = lremove(queue->asapQueue, n); WMReleaseNotification((WMNotification*)n); } while ((n = lfind(notification->name, queue->idleQueue, matchName))) { queue->idleQueue = lremove(queue->idleQueue, n); WMReleaseNotification((WMNotification*)n); } } if (mask & WNCOnSender) { while ((n = lfind(notification->name, queue->asapQueue, matchSender))) { queue->asapQueue = lremove(queue->asapQueue, n); WMReleaseNotification((WMNotification*)n); } while ((n = lfind(notification->name, queue->idleQueue, matchSender))) { queue->idleQueue = lremove(queue->idleQueue, n); WMReleaseNotification((WMNotification*)n); } }
context: WMDequeueNotificationMatching(WMNotificationQueue *queue, unsigned mask){}