Unified · Split
| @@ -352,6 +352,7 @@ screeninit(void) · 351 unmodified lines | |||
| 352 | &normalhints, /* XA_WM_NORMAL_HINTS */ | 352 | &normalhints, /* XA_WM_NORMAL_HINTS */ |
| 353 | &hints, /* XA_WM_HINTS */ | 353 | &hints, /* XA_WM_HINTS */ |
| 354 | &classhints); /* XA_WM_CLASS */ | 354 | &classhints); /* XA_WM_CLASS */ |
| 355 | XFlush(xdisplay); | ||
| 355 | if ((wmpid = XInternAtom(xdisplay, "_NET_WM_PID", False)) != None) { | 356 | if ((wmpid = XInternAtom(xdisplay, "_NET_WM_PID", False)) != None) { |
| 356 | pid = (unsigned long) getpid(); | 357 | pid = (unsigned long) getpid(); |
| 357 | XChangeProperty(xdisplay, xdrawable, | 358 | XChangeProperty(xdisplay, xdrawable, |
| @@ -361,8 +362,8 @@ screeninit(void) · 3 unmodified lines | |||
| 361 | PropModeReplace, /* int mode */ | 362 | PropModeReplace, /* int mode */ |
| 362 | (uchar *)&pid, /* unsigned char * data */ | 363 | (uchar *)&pid, /* unsigned char * data */ |
| 363 | 1); /* int nelements */ | 364 | 1); /* int nelements */ |
| 365 | XFlush(xdisplay); | ||
| 364 | } | 366 | } |
| 365 | XFlush(xdisplay); | ||
| 366 | 367 | ||
| 367 | /* | 368 | /* |
| 368 | * put the window on the screen | 369 | * put the window on the screen |