# HG changeset patch # User ib # Date 1310053285 0 # Node ID 9198f711233eaa746d964ad6de228e000d62a7ba # Parent e55098a29bcbcca7dfcbe55de326037b8cdfb815 Use proper cast in comparison. diff -r e55098a29bcb -r 9198f711233e gui/wm/wsxdnd.c --- a/gui/wm/wsxdnd.c Thu Jul 07 15:36:40 2011 +0000 +++ b/gui/wm/wsxdnd.c Thu Jul 07 15:41:25 2011 +0000 @@ -165,7 +165,7 @@ if ((event->data.l[1] & 1) == 0){ int index; for(index = 0; index <= 2 ; index++){ - if (event->data.l[2+index] == ok) { + if ((Atom) event->data.l[2+index] == ok) { atom_support = ok; } } @@ -216,7 +216,7 @@ } if (event->message_type == XA_XdndDrop) { - if (event->data.l[0] != XGetSelectionOwner(wsDisplay, XA_XdndSelection)){ + if ((Window) event->data.l[0] != XGetSelectionOwner(wsDisplay, XA_XdndSelection)){ puts("Wierd selection owner... QT?"); } if (atom_support != None) {