Skip to content

Conversation

@jabashque
Copy link

Part of the X Nonrectangular Window Shape Extension includes the ability to set the input shape. Setting the input shape to what is effectively a 0x0 rectangle results in a grid that cannot be clicked on; clicks and motion events end up being passed to the window below the grid.

Since this basically achieves what {open,close}pixel() was originally made for, we can just set the input shape as part of the initialization for our window and remove {open,close}pixel() and mouseinfo, as they are no longer needed.

Define the input shape to be empty so that one cannot click on the grid.
This resolves all issues where the cursor ends up pointing to the grid
itself instead of the window under the grid due to openpixel() not being
called.
Input shape is now set to 0x0, which takes care of the functionality
that {open,close}pixel() previously provided. As such, completely remove
{open,close}pixel() since they're no longer needed. In addition, remove
the mouseinfo var and the mouseinfo_t type since those were used only by
{open,close}pixel().
ashish-yadav11 added a commit to ashish-yadav11/keynav that referenced this pull request Oct 18, 2021
Part of the X Nonrectangular Window Shape Extension includes the ability
to set the input shape. Setting the input shape to what is effectively a
0x0 rectangle results in a grid that cannot be clicked on; clicks and
motion events end up being passed to the window below the grid.

Since this basically achieves what {open,close}pixel() was originally
made for, we can just set the input shape as part of the initialization
for our window and remove {open,close}pixel() and mouseinfo, as they are
no longer needed.
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.

1 participant