labwc icon indicating copy to clipboard operation
labwc copied to clipboard

Implement <default /> for mousebinds

Open alliumm opened this issue 3 years ago • 4 comments

When I have an xdg-shell window focused and click on an xwayland window, the window I clicked captures input. When I click from an xwayland window to another xwayland window the second one captures input.

However, when I click from an xwayland window into an xdg-shell window, the xwayland window keeps capturing input. I have to alt-tab switch to it to type in the xdg-shell window.

alliumm avatar Jun 25 '22 04:06 alliumm

Which branch / release of labwc are you using?

Consolatis avatar Jun 25 '22 11:06 Consolatis

I am on the latest master commit. Actually, I realized after reporting this that clicking inside of any xdg-shell window doesn't focus it properly for me, even from one xdg-shell window to another.

alliumm avatar Jun 26 '22 20:06 alliumm

I figured out the problem. Apparently defining one mousebind in rc.xml overwrites all default mousebinds, unlike keyboard shortcuts. At the very least I think there should be a warning about this in the manpage.

alliumm avatar Jun 26 '22 20:06 alliumm

Yes, good point. We ought point that out in the example rc.xml and rc.xml.all as well as the man page. I think we will add a <devault /> option to mousebinds, too at some point.

--edit-- well, that was meant to be <default /> of course. Leaving the original there for amusement (Drew Devault started wlroots)

johanmalm avatar Jun 26 '22 20:06 johanmalm