[gnome-utils] screenshot: Don't snap the selection
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-utils] screenshot: Don't snap the selection
- Date: Fri, 4 Feb 2011 17:44:43 +0000 (UTC)
commit 13741db3522aaac8be732567bca00d9c81929b72
Author: Benjamin Otte <otte redhat com>
Date: Fri Feb 4 18:40:17 2011 +0100
screenshot: Don't snap the selection
Call gdk_flush() at the right place to avoid the selection window still
being on screen when we take the snapshot of it.
gnome-screenshot/screenshot-utils.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnome-screenshot/screenshot-utils.c b/gnome-screenshot/screenshot-utils.c
index bae3d25..2e44ad4 100644
--- a/gnome-screenshot/screenshot-utils.c
+++ b/gnome-screenshot/screenshot-utils.c
@@ -466,8 +466,6 @@ screenshot_select_area (int *px,
return FALSE;
}
- gdk_flush ();
-
gtk_main ();
gdk_keyboard_ungrab (GDK_CURRENT_TIME);
@@ -476,6 +474,8 @@ screenshot_select_area (int *px,
gtk_widget_destroy (data.window);
gdk_cursor_unref (cursor);
+ gdk_flush ();
+
*px = data.rect.x;
*py = data.rect.y;
*pwidth = data.rect.width;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]