aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2010-08-19 04:36:22 +0100
committerRobert Bragg <robert@linux.intel.com>2010-12-09 22:46:47 +0000
commitea84bd26d72ae05bfa9aef2cc8000919421641be (patch)
treee4b8d900e7ed31647b3b2cd31571ec2925be932d /configure.ac
parent41059683747e80790218b3bf67f71df5c56f39a7 (diff)
downloadlibmatchboxwm2-ea84bd26d72ae05bfa9aef2cc8000919421641be.tar.gz
libmatchboxwm2-ea84bd26d72ae05bfa9aef2cc8000919421641be.tar.bz2
libmatchboxwm2-ea84bd26d72ae05bfa9aef2cc8000919421641be.zip
Overhaul our mainloop integration
This removes mb-wm-main-context.c since we now just use a glib mainloop context instead. The new mainloop integration API allows matchbox to be fed X events from an external toolkit so core matchbox no longer needs to have any gtk specific event source integration code, since it should be straightforward for a gtk based wm/compositor to decide to take ownership of event fetching and pass those events through to matchbox manually if they want. In the process of removing references to the mb-wm-main-context API it was necessary to refactor how we handle mouse grabs for moving and resizing windows. Previously we would do an X grab and then then immediately enter a tight loop, polling for X mouse events and handling them until something triggers an ungrab and then resume fetching events in the normal way. Now though when we do the mouse grab we just use mb_wm_manager_add_event_handler to register a temporary interest in mouse events and mb_wm_manager_remove_event_handler when the grab is finished. This means we can continue to use the normal event delivery mechanism during a grab and more importantly we don't block the mainloop which would really upset window managers and compositors needing to process other asynchronous events during a grab.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac28
1 files changed, 0 insertions, 28 deletions
diff --git a/configure.ac b/configure.ac
index d814d44..3ca9697 100644
--- a/configure.ac
+++ b/configure.ac
@@ -62,18 +62,10 @@ AC_ARG_WITH(pango,
[ --with-pango Use of pango for text layout],
[use_pango=$withval], [use_pango=no])
-AC_ARG_WITH(gtk,
- [ --with-gtk With GTK integration support],
- [use_gtk=$withval], [use_gtk=no])
-
AC_ARG_ENABLE(compositing,
[ --enable-compositing Enable support for compositing],
[compositing=$enableval], [compositing=no])
-AC_ARG_ENABLE(glib-main-loop,
- [ --enable-glib-main-loop Enable use of glib main loop],
- [gmloop=$enableval], [gmloop=no])
-
AC_ARG_ENABLE(matchbox-remote,
[ --enable-matchbox-remote Enable matchbox remote control utility],
[matchbox_remote=$enableval], [matchbox_remote=no])
@@ -99,10 +91,6 @@ if ! test "x$use_pango" = "xyes" -o "x$use_pango" = "xyes"; then
needed_pkgs="$needed_pkgs xft "
fi
-if test "x$use_gtk" = "xyes"; then
- needed_pkgs="$needed_pkgs gtk+-2.0 "
-fi
-
if test "x$png_theme" = "xyes"; then
needed_pkgs="$needed_pkgs libpng12 "
fi
@@ -137,7 +125,6 @@ for manager in $included_managers; do
;;
clutter )
needed_pkgs="$needed_pkgs $clutter_package xcomposite xdamage "
- gmloop="yes"
;;
esac
@@ -157,12 +144,6 @@ if test "x$want_debug" = "xyes"; then
fi
AC_SUBST(MBWM_WANT_DEBUG)
-USE_GLIB_MAINLOOP=0
-if test "x$gmloop" = "xyes"; then
- USE_GLIB_MAINLOOP=1
-fi
-AC_SUBST(USE_GLIB_MAINLOOP)
-
USE_PANGO=0
if test "$use_pango" = yes; then
USE_PANGO=1
@@ -184,13 +165,6 @@ if test "$use_png" != yes; then
fi
AC_SUBST(THEME_SIMPLE)
-USE_GTK=0
-AM_CONDITIONAL(USE_GTK, test "x$use_gtk" = "xyes")
-if test "$use_gtk" = yes; then
- USE_GTK=1
-fi
-AC_SUBST(USE_GTK)
-
PKG_CHECK_MODULES(MBWM, $needed_pkgs)
MBWM_PKGREQUIRES="$MBWM_PKGREQUIRES $needed_pkgs"
AC_SUBST(MBWM_PKGREQUIRES)
@@ -311,7 +285,6 @@ echo "
Themes:
PNG theme : ${png_theme}
- GTK integration : ${use_gtk}
Pango integration : ${use_pango}
Managers:
@@ -321,7 +294,6 @@ echo "
Miscel:
Compositing support : ${compositing}
- Glib main loop : ${gmloop}
Build matchbox-remote : ${matchbox_remote}
Debugging output : ${want_debug}
"