better mask handling, don't raise windows quite so eagerly.
This commit is contained in:
parent
2fc26be665
commit
2c1b986edf
3 changed files with 17 additions and 17 deletions
|
|
@ -411,13 +411,14 @@ sendcmessage(Window w, Atom a, long x, int isroot, int usemask)
|
|||
ev.xclient.format = 32;
|
||||
ev.xclient.data.l[0] = x;
|
||||
ev.xclient.data.l[1] = timestamp();
|
||||
if (usemask == 0)
|
||||
mask = 0;
|
||||
else if (isroot)
|
||||
mask = SubstructureRedirectMask; /* magic! */
|
||||
else
|
||||
mask = ExposureMask; /* not really correct but so be it */
|
||||
mask |= KeyPressMask; /* seems to be necessary */
|
||||
mask = 0;
|
||||
if(usemask){
|
||||
mask |= KeyPressMask; /* seems to be necessary */
|
||||
if (isroot)
|
||||
mask |= SubstructureRedirectMask; /* magic! */
|
||||
else
|
||||
mask |= ExposureMask; /* not really correct but so be it */
|
||||
}
|
||||
status = XSendEvent(dpy, w, False, mask, &ev);
|
||||
if (status == 0)
|
||||
fprintf(stderr, "rio: sendcmessage failed\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue