Skip to content

Make Oneko Click-through#3

Open
jyi2ya wants to merge 3 commits intoIreneKnapp:masterfrom
jyi2ya:master
Open

Make Oneko Click-through#3
jyi2ya wants to merge 3 commits intoIreneKnapp:masterfrom
jyi2ya:master

Conversation

@jyi2ya
Copy link

@jyi2ya jyi2ya commented Jan 10, 2023

With a window manager that uses the "Focus Follows Mouse" mode, oneko is focused every time it reaches the mouse. If focused, oneko will consume all mouse events, which is sometimes annoying. For example, if I click a button and oneko is laying under the mouse, this click event will be sent to oneko but not the button. I have to first move the mouse to somewhere to drive away oneko, and try to click the button before it comes back.

This patch tries to solve this problem by making oneko click-through. All events that oneko received will be simply passed through. This feature depends on X11 XFixed extension, which means we need to add -lXfixed to our compile options.

@IreneKnapp
Copy link
Owner

oo! thanks so much, I like this and want to accept it. I will do detailed code review when I get the chance, it may be a little while.

@xzfc
Copy link

xzfc commented Mar 14, 2025

You don't need enabling XFixes extension for such basic shape usage. A following call would suffice.

XShapeCombineRectangles(theDisplay, theWindow, ShapeInput, 0, 0, NULL, 0, ShapeSet, YXBanded);

Which roughly translates to: set ShapeInput to be an empty set of rectangles, i.e. a completely empty shape.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants