History

x11 set wm properties needs a display flush to work

joe committed 6 years ago

Commit c4faf3a1 parent e40ce251 file · +2 −1Browse files

Unified · Split

gui-x11/x11.c+2−1
@@ -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 screen369 * put the window on the screen

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t