1 diff -ur a/gdk.typemap b/gdk.typemap
2 --- a/gdk.typemap 2017-05-21 15:02:54.000000000 -0400
3 +++ b/gdk.typemap 2023-11-03 13:17:43.717890172 -0400
7 # can be either a pointer or an integer, this handles both cases
11 # GdkBitmap doesn't get its own type id, but needs to be treated separately.
12 diff -ur a/xs/GdkDnd.xs b/xs/GdkDnd.xs
13 --- a/xs/GdkDnd.xs 2017-05-21 15:02:54.000000000 -0400
14 +++ b/xs/GdkDnd.xs 2023-11-03 13:23:22.478329089 -0400
17 gdk_drag_get_protocol_for_display (class, display, xid)
22 GdkDragProtocol protocol;
26 - ret = gdk_drag_get_protocol_for_display (display, xid, &protocol);
27 + ret = (uintptr_t)gdk_drag_get_protocol_for_display (display, INT2PTR(GdkNativeWindow, xid), &protocol);
28 XPUSHs (sv_2mortal (newSVuv (ret)));
29 XPUSHs (sv_2mortal (ret
30 ? newSVGdkDragProtocol (protocol)
34 gdk_drag_get_protocol (class, xid)
38 GdkDragProtocol protocol;
42 - ret = gdk_drag_get_protocol (xid, &protocol);
43 + ret = (uintptr_t)gdk_drag_get_protocol (INT2PTR(GdkNativeWindow, xid), &protocol);
44 XPUSHs (sv_2mortal (newSVuv (ret)));
45 XPUSHs (sv_2mortal (newSVGdkDragProtocol (protocol)));
47 diff -ur a/xs/GdkSelection.xs b/xs/GdkSelection.xs
48 --- a/xs/GdkSelection.xs 2017-05-21 15:02:54.000000000 -0400
49 +++ b/xs/GdkSelection.xs 2023-11-03 13:26:58.976888906 -0400
51 ## void gdk_selection_send_notify (guint32 requestor, GdkAtom selection, GdkAtom target, GdkAtom property, guint32 time_)
53 gdk_selection_send_notify (class, requestor, selection, target, property, time_)
55 + GdkNativeWindow requestor
61 gdk_selection_send_notify_for_display (class, display, requestor, selection, target, property, time_)
64 + GdkNativeWindow requestor
68 diff -ur a/xs/GtkWindow.xs b/xs/GtkWindow.xs
69 --- a/xs/GtkWindow.xs 2017-05-21 15:02:54.000000000 -0400
70 +++ b/xs/GtkWindow.xs 2023-11-03 13:32:53.673168678 -0400
73 gtk_window_remove_embedded_xid (window, xid)
78 ## void gtk_window_add_embedded_xid (GtkWindow *window, guint xid)
80 gtk_window_add_embedded_xid (window, xid)
85 ##void gtk_window_reshow_with_initial_size (GtkWindow *window)