[gtk+/client-side-windows: 97/284] move_region_on_impl - shortcut if region is empty
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+/client-side-windows: 97/284] move_region_on_impl - shortcut if region is empty
- Date: Thu, 2 Apr 2009 14:07:53 -0400 (EDT)
commit 6b15e248fae1166d7701becb015eb9c860af57d9
Author: Alexander Larsson <alexl redhat com>
Date: Tue Jan 20 22:17:06 2009 +0100
move_region_on_impl - shortcut if region is empty
---
gdk/gdkwindow.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 3212d70..f4e05b5 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]