mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-29 06:51:10 +00:00
move_region_on_impl - shortcut if region is empty
This commit is contained in:
parent
ed9cd90b72
commit
6b15e248fa
@ -2523,7 +2523,8 @@ move_region_on_impl (GdkWindowObject *private,
|
||||
GdkWindowObject *impl_window;
|
||||
gboolean free_region;
|
||||
|
||||
if (dx == 0 && dy == 0)
|
||||
if ((dx == 0 && dy == 0) ||
|
||||
gdk_region_empty (region))
|
||||
{
|
||||
gdk_region_destroy (region);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user