mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
plug-ins: use proper Window type for X11.
This commit is contained in:
parent
41ba9b315c
commit
bb6b2e395f
1 changed files with 4 additions and 4 deletions
|
@ -144,12 +144,12 @@ screenshot_freedesktop_shoot (GdkMonitor *monitor,
|
|||
if (GDK_IS_X11_DISPLAY (gdk_display_get_default ()))
|
||||
{
|
||||
GdkWindow *window;
|
||||
guint32 *handle_data;
|
||||
guint32 window_id;
|
||||
Window *handle_data;
|
||||
Window window_id;
|
||||
gsize handle_size;
|
||||
|
||||
handle_data = (guint32 *) g_bytes_get_data (handle, &handle_size);
|
||||
g_return_val_if_fail (handle_size == sizeof (guint32), GIMP_PDB_EXECUTION_ERROR);
|
||||
handle_data = (Window *) g_bytes_get_data (handle, &handle_size);
|
||||
g_return_val_if_fail (handle_size == sizeof (Window), GIMP_PDB_EXECUTION_ERROR);
|
||||
window_id = *handle_data;
|
||||
|
||||
window = gdk_x11_window_foreign_new_for_display (gdk_display_get_default (), window_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue