mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-29 01:24:51 +02:00
grX11su3.c: warning for ClientData compare
MAGIC_WRAPPER build option
This commit is contained in:
+1
-1
@@ -1075,7 +1075,7 @@ GrOGLIconUpdate(w,text)
|
||||
XClassHint class;
|
||||
char *brack;
|
||||
|
||||
if (w->w_grdata == (ClientData)NULL) return;
|
||||
if (w->w_grdata == PTR2CD(NULL)) return;
|
||||
class.res_name = "magic";
|
||||
class.res_class = "magic";
|
||||
XSetClassHint( grXdpy, wind, &class);
|
||||
|
||||
+1
-1
@@ -573,7 +573,7 @@ groglCreateBackingStore(MagWindow *w)
|
||||
if (w->w_client != DBWclientID) return;
|
||||
|
||||
/* deferred */
|
||||
if (w->w_grdata == (Window)NULL) return;
|
||||
if (w->w_grdata == PTR2CD(NULL)) return;
|
||||
|
||||
width = w->w_screenArea.r_xtop - w->w_screenArea.r_xbot;
|
||||
height = w->w_screenArea.r_ytop - w->w_screenArea.r_ybot;
|
||||
|
||||
+1
-1
@@ -1442,7 +1442,7 @@ GrX11IconUpdate(w,text)
|
||||
XClassHint class;
|
||||
char *brack;
|
||||
|
||||
if (w->w_grdata == (ClientData)NULL) return;
|
||||
if (w->w_grdata == PTR2CD(NULL)) return;
|
||||
class.res_name = "magic";
|
||||
class.res_class = "magic";
|
||||
XSetClassHint( grXdpy, wind, &class);
|
||||
|
||||
+1
-1
@@ -393,7 +393,7 @@ grx11CreateBackingStore(MagWindow *w)
|
||||
if (w->w_client != DBWclientID) return;
|
||||
|
||||
/* deferred */
|
||||
if (w->w_grdata == (Window)NULL) return;
|
||||
if (w->w_grdata == PTR2CD(NULL)) return;
|
||||
|
||||
width = w->w_screenArea.r_xtop - w->w_screenArea.r_xbot;
|
||||
height = w->w_screenArea.r_ytop - w->w_screenArea.r_ybot;
|
||||
|
||||
Reference in New Issue
Block a user