1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-28 20:23:51 +00:00

Merge pull request #1004 from bbb651/xdg-activation

wayland: Activate window with `XDG_ACTIVATION_TOKEN`.
This commit is contained in:
Bartosz Taudul 2025-03-09 12:23:47 +01:00 committed by GitHub
commit 873c6ecac8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1014,6 +1014,16 @@ Backend::Backend( const char* title, const std::function<void()>& redraw, const
xdg_toplevel_set_title( s_toplevel, title );
xdg_toplevel_set_app_id( s_toplevel, "tracy" );
if( s_activation )
{
const char* token = getenv( "XDG_ACTIVATION_TOKEN" );
if( token )
{
xdg_activation_v1_activate( s_activation, token, s_surf );
unsetenv( "XDG_ACTIVATION_TOKEN" );
}
}
if( s_decoration )
{
s_tldec = zxdg_decoration_manager_v1_get_toplevel_decoration( s_decoration, s_toplevel );