Skip to content

Add an option to click through transparent windows' pixels #193

Description

@SputerSnoot

I stumbled upon this problem:

Image

In the image i have a waybar with a transparent background

Physically, the bar takes up the full width at the top, so it receives the input events and breaks clicking on windows behind it. This was not a problem in tiling window managers, because windows usually don't go under the bar, they either don't touch it or stay on top of it.

  • I fixed this issue for myself in driftwm with a hacky solution by patching the waybar to physically take up only the necessary space. This required me to have the bar on only one side, or i would need to launch multiple bars
  • The proper fix would be to add an option like click_through_transparent to the config to allow clicking through transparent window pixels. Also it would be great to allow changing the global setting with [[window_rules]].

The default value for click_through_transparent should be true: if there is a transparent window on top of a normal window and you try to click on the normal window, it could be confusing otherwise. But in case anyone has a specific use case like a transparent window that should grab a gesture from the mouse the window rules would allow changing it for their case

This feature would also allow playing desktop companion games with transparency like characters moving on top of the screen or idlers: cornerpond, rusty's retirement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions