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
352352 &normalhints, /* XA_WM_NORMAL_HINTS */
353353 &hints, /* XA_WM_HINTS */
354354 &classhints); /* XA_WM_CLASS */
355+ XFlush(xdisplay);
355356 if ((wmpid = XInternAtom(xdisplay, "_NET_WM_PID", False)) != None) {
356357 pid = (unsigned long) getpid();
357358 XChangeProperty(xdisplay, xdrawable,
@@ -361,8 +362,8 @@ screeninit(void) · 3 unmodified lines
361362 PropModeReplace, /* int mode */
362363 (uchar *)&pid, /* unsigned char * data */
363364 1); /* int nelements */
365+ XFlush(xdisplay);
364366 }
365− XFlush(xdisplay);
366367
367368 /*
368369 * 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