Fix x11_window field type in set_parent struct

This needs to have the same size on all platforms, I didn't realize that
`clap_xwnd` used longs.
This commit is contained in:
Robbert van der Helm
2022-09-29 20:04:19 +02:00
parent b5aaa02645
commit d062e59ca2
+3 -1
View File
@@ -272,7 +272,9 @@ struct SetParent {
native_size_t instance_id;
// We only support X11 right now, so we can simplify this a little
clap_xwnd x11_window;
// NOTE: This should be a `clap_xwnd`, but that's defined as an `unsigned
// long` which is 32-bit on Windows and 64-bit on Linux
uint64_t x11_window;
template <typename S>
void serialize(S& s) {