[byzanz] Use gdk_screen_is_composited() to figure out how to do area selection
- From: Benjamin Otte <otte src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [byzanz] Use gdk_screen_is_composited() to figure out how to do area selection
- Date: Sat, 15 Aug 2009 14:08:43 +0000 (UTC)
commit 5ea8ebf27a6b88182b491b99d9d74233500c7d12
Author: Benjamin Otte <otte gnome org>
Date: Sat Aug 15 15:51:19 2009 +0200
Use gdk_screen_is_composited() to figure out how to do area selection
Previously the code only checked for an ARGB visual becuase this
function didn't exist when this was coded.
Also require Gtk 2.10 that introduced this function.
configure.ac | 2 +-
src/byzanzselect.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 4ec431b..864b12c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -101,7 +101,7 @@ AC_DEFINE_DIR(DATADIR, "${datadir}", [datadir])
dnl Check for essential libraries first:
dnl ====================================
-GTK_REQ="2.6.0"
+GTK_REQ="2.10.0"
GTHREAD_REQ="2.6.0"
APPLET_REQ="2.10.0"
XDAMAGE_REQ="1.0"
diff --git a/src/byzanzselect.c b/src/byzanzselect.c
index f05f8ca..49e8840 100644
--- a/src/byzanzselect.c
+++ b/src/byzanzselect.c
@@ -192,7 +192,7 @@ byzanz_select_area (GdkRectangle *rect)
data->window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
data->loop = g_main_loop_new (NULL, FALSE);
data->x0 = data->y0 = -1;
- if (rgba) {
+ if (rgba && gdk_screen_is_composited (gdk_screen_get_default ())) {
gtk_widget_set_colormap (data->window, rgba);
} else {
GdkWindow *root = gdk_get_default_root_window ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]