summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2010-11-12 19:47:48 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2010-11-12 19:47:48 +0800
commit1e79952a8d573e211ca194712f7f52fa3df89fb9 (patch)
tree43aab4ed139c4504f6aecfd205d90e27df258bb1 /include
parent70e344e57c37d9e20b77e89dc013e411c24c3f50 (diff)
parent868eeabb474b29776077d4cfdc8608469ae1ce09 (diff)
downloadmobileperf-1e79952a8d573e211ca194712f7f52fa3df89fb9.tar.gz
mobileperf-1e79952a8d573e211ca194712f7f52fa3df89fb9.tar.bz2
Merge branch 'master' of git://git.compiz.org/compiz/core
Diffstat (limited to 'include')
-rw-r--r--include/core/screen.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/include/core/screen.h b/include/core/screen.h
index d145386..891e50f 100644
--- a/include/core/screen.h
+++ b/include/core/screen.h
@@ -262,22 +262,37 @@ class CompScreen :
Cursor invisibleCursor ();
+ /* Adds an X Pointer and Keyboard grab to the stack. Since
+ * compiz as a client only need to grab once, multiple clients
+ * can call this and all get events, but the pointer will
+ * be grabbed once and the actual grab refcounted */
GrabHandle pushGrab (Cursor cursor, const char *name);
+ /* Allows you to change the pointer of your grab */
void updateGrab (GrabHandle handle, Cursor cursor);
+ /* Removes your grab from the stack. Once the internal refcount
+ * reaches zero, the X Pointer and Keyboard are both ungrabbed
+ */
void removeGrab (GrabHandle handle, CompPoint *restorePointer);
+ /* Returns true if a grab other than the grabs specified here
+ * exists */
bool otherGrabExist (const char *, ...);
+ /* Returns true if the specified grab exists */
bool grabExist (const char *);
+ /* Returns true if the X Pointer and / or Keyboard is grabbed
+ * by anything (another application, pluigins etc) */
+ bool grabbed ();
+
const CompWindowVector & clientList (bool stackingOrder = true);
bool addAction (CompAction *action);
void removeAction (CompAction *action);
-
+
void updateWorkarea ();
void toolkitAction (Atom toolkitAction,
@@ -322,7 +337,7 @@ class CompScreen :
unsigned int nDesktop ();
CompActiveWindowHistory *currentHistory ();
-
+
bool shouldSerializePlugins () ;
const CompRegion & region () const;