diff dep/animia/src/win/wayland.cc @ 223:84e0a3c4737a

library: implement menu bar buttons I also went ahead and put the links from Taiga in so I don't have to worry about it later...
author Paper <mrpapersonic@gmail.com>
date Mon, 08 Jan 2024 16:54:16 -0500
parents 53211cb1e7f5
children
line wrap: on
line diff
--- a/dep/animia/src/win/wayland.cc	Mon Jan 08 13:22:09 2024 -0500
+++ b/dep/animia/src/win/wayland.cc	Mon Jan 08 16:54:16 2024 -0500
@@ -1,6 +1,7 @@
 #include "animia/win/wayland.h"
 #include "animia.h"
 #include "animia/win.h"
+#include "animia/util.h"
 
 #include <cstring>
 #include <iostream>
@@ -90,9 +91,10 @@
 		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_identifier(void* data, ext_foreign_toplevel_handle_v1* handle, const char* identifier) {
+	if (identifier) {
+		reinterpret_cast<Window*>(data)->id = util::StringToInt(identifier, 0);
+	}
 }
 
 static void ext_foreign_handle_handle_done(void* data, struct ext_foreign_toplevel_handle_v1* handle) {