mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-13 12:25:53 +01:00
- Fixed some compilation problems, which could lead to sigsegv at run time in
the new 'bag' code. - Fixed PPosition problem.
This commit is contained in:
@@ -440,7 +440,7 @@ WMDequeueNotificationMatching(WMNotificationQueue *queue,
|
||||
for (i = 0; i < WMGetBagItemCount(queue->asapQueue); i++) {
|
||||
tmp = WMGetFromBag(queue->asapQueue, i);
|
||||
|
||||
if (strcmp(notification->name, tmp) == 0) {
|
||||
if (strcmp(notification->name, tmp->name) == 0) {
|
||||
WMRemoveFromBag(queue->asapQueue, tmp);
|
||||
WMReleaseNotification(tmp);
|
||||
break;
|
||||
@@ -449,7 +449,7 @@ WMDequeueNotificationMatching(WMNotificationQueue *queue,
|
||||
for (i = 0; i < WMGetBagItemCount(queue->idleQueue); i++) {
|
||||
tmp = WMGetFromBag(queue->idleQueue, i);
|
||||
|
||||
if (strcmp(notification->name, tmp) == 0) {
|
||||
if (strcmp(notification->name, tmp->name) == 0) {
|
||||
WMRemoveFromBag(queue->idleQueue, tmp);
|
||||
WMReleaseNotification(tmp);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user