Okay, so I can use ext_foreign_toplevel_list_v1 to list toplevels and get info a...

@tranquillity@mastodon.minionflo.net

Okay, so I can use ext_foreign_toplevel_list_v1 to list toplevels and get info about them
In some compositors, I can use wlr-foreign-toplevel-management-unstable-v1 to implement a window switcher
ext_foreign_toplevel_list_v1 assigns each toplevel an identifier. So that means that in a more complex application, I can just store the identifier, and then activate it using wlr-foreign-toplevel-management-unstable-v1, right? Wrong! identifier is only exposed by ext_foreign_toplevel_list_v1, and instead if you wanna ::activate, wlr-foreign-toplevel-management-unstable-v1 forces you to listen to the wayland object and property listing listing anew and save the wayland objects. There's no way to match a toplevel from ext_foreign_toplevel_list_v1 with a toplevel from wlr-foreign-toplevel-management-unstable-v1. You can match based on the app id (icon) and window title :neobot_woozy:

#wayland is truly a protocol with zero issues whatsoever.