mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
libgimpwidgets: slightly better form.
Previous code was right and equivalent because gdk_wayland_window_export_handle() works asynchronously in the same thread (so phandle can't get overridden by mistake). Nevertheless a quick code scan felt surprising, so to avoid any such future surprise, let's just switch the order of statements.
This commit is contained in:
parent
bb6b2e395f
commit
0e7c4fec14
1 changed files with 3 additions and 2 deletions
|
@ -1362,6 +1362,9 @@ gimp_widget_set_handle_on_mapped (GtkWidget *widget,
|
|||
handle = g_bytes_new (&id, sizeof (Window));
|
||||
}
|
||||
#endif
|
||||
|
||||
*phandle = handle;
|
||||
|
||||
#ifdef GDK_WINDOWING_WAYLAND
|
||||
if (GDK_IS_WAYLAND_WINDOW (surface))
|
||||
{
|
||||
|
@ -1379,7 +1382,5 @@ gimp_widget_set_handle_on_mapped (GtkWidget *widget,
|
|||
}
|
||||
#endif
|
||||
|
||||
*phandle = handle;
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue