pop-os / cosmic-comp

Compositor for the COSMIC desktop environment
GNU General Public License v3.0
487 stars 90 forks source link

Touchscreen doesn't change focus #840

Open Quackdoc opened 2 months ago

Quackdoc commented 2 months ago

When using a touchscreen device, I can interact with windows, however windows don't change focus. this means that unless the window is already focused, you can click buttons, but cannot enable stuff like text boxes for typing.

It would be nice if this was configurable as behavior is actually somewhat desirable as it works really well with waydroid.

As a side question, would it be possible to have a separate focus just for touch input? The idea would be to have keyboard + mouse as one input group, then use touch + <something> (ex. OSK) as a separate group, so the inputs could interact with applications independently of each other.

My sister often uses a graphics tablet with her PC and would love a workflow like this and has asked me about it in the past. The general idea would be that her mouse and keyboard are free, and uses touch + pen + macropad with multiple apps on the graphics tablet.

map_to_output working for keyboards and mice would work for this, but still would need multiple applications being focused.

Quackdoc commented 2 months ago

at least as of 4d21575 touchscreen changes focus, it will be nice to eventually be able to toggle this, but as the issue is solved this will be closed

Quackdoc commented 2 months ago

can confirm that at least when using waydroid inside of cage, focus does not get taken, this is the same when I trigger scrolling in telegram, however when I click a button in telegram the focus does now get taken.

honestly i'm not sure if this should be re-opened or a new issue created

Quackdoc commented 1 month ago

Seems like this issue has been re-introduced. I am currently running afdb656 and will bisect when I can

EDIT: In hind sight, I think i may have been mistaken on this being solved originally. buttons take focus, but text boxes don't, clicking a textbox seems to... buffer the input on telegram which then gets executed when the window is focused.