grX11su3.c: warning for ClientData compare

MAGIC_WRAPPER build option
This commit is contained in:
Darryl L. Miles 2025-08-25 11:44:33 +01:00 committed by R. Timothy Edwards
parent dbdec3aa17
commit 692c0f2339
4 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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;

View File

@ -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);

View File

@ -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;