changeset 33757:9198f711233e

Use proper cast in comparison.
author ib
date Thu, 07 Jul 2011 15:41:25 +0000
parents e55098a29bcb
children fdf7cfbd2922
files gui/wm/wsxdnd.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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) {