Mercurial > minori
diff dep/animia/src/win/wayland.cc @ 221:53211cb1e7f5
library: add initial library stuff
nice
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Mon, 08 Jan 2024 13:21:08 -0500 |
parents | 2f6d27fcdf7d |
children | 84e0a3c4737a |
line wrap: on
line diff
--- a/dep/animia/src/win/wayland.cc Mon Jan 08 11:56:09 2024 -0500 +++ b/dep/animia/src/win/wayland.cc Mon Jan 08 13:21:08 2024 -0500 @@ -56,7 +56,8 @@ .state = zwlr_foreign_handle_handle_state, .done = zwlr_foreign_handle_handle_done, .closed = zwlr_foreign_handle_handle_closed, - .parent = zwlr_foreign_handle_handle_parent}; + .parent = zwlr_foreign_handle_handle_parent +}; static void zwlr_toplevel_manager_handle_toplevel(void* data, struct zwlr_foreign_toplevel_manager_v1* manager, struct zwlr_foreign_toplevel_handle_v1* handle) { @@ -89,6 +90,11 @@ reinterpret_cast<Window*>(data)->text = title; } +static void ext_foreign_handle_handle_identifier(void*, ext_foreign_toplevel_handle_v1*, const char* identifier) { + if (identifier) + reinterpret_cast<Window*>(data)->id = identifier; +} + static void ext_foreign_handle_handle_done(void* data, struct ext_foreign_toplevel_handle_v1* handle) { if (handle) ext_foreign_toplevel_handle_v1_destroy(handle); @@ -97,9 +103,6 @@ static void ext_foreign_handle_handle_closed(void*, struct ext_foreign_toplevel_handle_v1*) { } -static void ext_foreign_handle_handle_identifier(void*, ext_foreign_toplevel_handle_v1*, const char*) { -} - static const struct ext_foreign_toplevel_handle_v1_listener ext_handle_listener = { .closed = ext_foreign_handle_handle_closed, .done = ext_foreign_handle_handle_done,