-
-
Notifications
You must be signed in to change notification settings - Fork 610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mouse right click does not work for me on Linux after a0d4393 #709
Comments
Unfortunately having the XShape stuff in |
If you want XShape functionality to reliably work under all window managers, it should be called after the application receives while (XPending(display) > 0) {
XEvent ev;
XNextEvent(display, &ev);
switch (ev.type) {
/* ... */
case MapNotify: {
Window root = DefaultRootWindow(display);
Window win = w->w;
while (win != None) {
Region region;
if ((region = XCreateRegion())) {
XShapeCombineRegion(display, w->w, ShapeInput, 0, 0, region, ShapeSet);
XDestroyRegion(region);
}
Window parent;
find_parent(win, &parent);
win = (parent == root ? None : parent);
}
XFlush(display);
break;
}
}
} Sincerely, someone who spent far too long debugging this in a separate project. |
@wacossusca34 good to know, thanks for the input. |
@brndnmtthws is the suggestion made above good to merge? It seems like it should work |
This issue is stale because it has been open 365 days with no activity. Remove stale label or comment, or this issue will be closed in 30 days. |
This issue was closed because it has been stalled for 30 days with no activity. |
Hi. Mouse right click does not work for me on Linux after a0d4393, and worked with this patch. Why?
The text was updated successfully, but these errors were encountered: