Can not switch to app with multiple instances with touch
Closed this issue · 3 comments
Describe the bug
If an app has multiple windows or instances of that app, such as two instances of the kitty terminal emulator, the popup to select which of these instances to select appears. However, this menu can't be tapped on and can only be interacted with using a mouse which is inconvenient for 2 in 1 laptop users.
To Reproduce
Steps to reproduce the behavior:
- Open two sessions of any app
- Tap on the grouped icon
- Tap on one of the windows that appear in the pop up
Expected behavior
Switch to the window that is tapped from this pop up
Desktop (please complete the following information):
- Linux distribution - EndeavourOS w/ 6.8.9-arch1-2 kernel
- go version - 2:1.22.3-1
- gtk-layer-shell version - 0.8.2-1
I have no touch screen device to play with. Which touch event would you like me to connect?
I can't offer much guidance since I'm unfamiliar with how GTK handles touch events, though from a brief look at the documentation GDK_TOUCH_END
appears to be the event that should be used. Ideally I would like to tap on a program as usual, and be able to tap on a specific instance, such as an instance of kitty running pacman instead of one running htop, in the pop up that appears when there are multiple instances. Apologies if my guess was incorrect.
(edited for clarity)
Well, we seem not to have much options. The GDK_TOUCH_END
event fires together with button release, so it's not a solution. Probably a long press would do the job, but we have no such event in GTK3. We would need a timer between Gdk.EventType.TOUCH_BEGIN
and Gdk.EventType.TOUCH_END
. It would be much easier if I had a device to test stuff on.