summaryrefslogtreecommitdiff
path: root/include/core
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2011-01-26 14:10:27 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2011-01-26 14:10:27 +0800
commit087f52341eca9ec0e7ddaa36e1bba2fbf0041cdf (patch)
tree441694e01868fc890261c651b40cbe97abb8be52 /include/core
parent081e136b3616b3b9203817af32d3a0e3774d78de (diff)
downloadmobileperf-087f52341eca9ec0e7ddaa36e1bba2fbf0041cdf.tar.gz
mobileperf-087f52341eca9ec0e7ddaa36e1bba2fbf0041cdf.tar.bz2
Fix windows jumping around when clicking on parts that trigger move
Since we no longer have an unconditional passive grab on Button1 for active and raised windows, we need to check if a client sent us a _NET_WM_MOVERESIZE ClientMessage and update the pointer buffer on that. Also clean up the pointer buffer handling code again - reduce the number of roundtrips required. Remove debug message.
Diffstat (limited to 'include/core')
-rw-r--r--include/core/core.h2
-rw-r--r--include/core/screen.h2
-rw-r--r--include/core/window.h3
3 files changed, 4 insertions, 3 deletions
diff --git a/include/core/core.h b/include/core/core.h
index 40f2eec..0e677d1 100644
--- a/include/core/core.h
+++ b/include/core/core.h
@@ -26,7 +26,7 @@
#ifndef _COMPIZ_CORE_H
#define _COMPIZ_CORE_H
-#define CORE_ABIVERSION 20080618
+#define CORE_ABIVERSION 20110126
#include <stdio.h>
#include <assert.h>
diff --git a/include/core/screen.h b/include/core/screen.h
index a36599b..99919ac 100644
--- a/include/core/screen.h
+++ b/include/core/screen.h
@@ -55,8 +55,10 @@ extern ModifierHandler *modHandler;
extern int lastPointerX;
extern int lastPointerY;
+extern unsigned int lastPointerMods;
extern int pointerX;
extern int pointerY;
+extern unsigned int pointerMods;
#define NOTIFY_CREATE_MASK (1 << 0)
#define NOTIFY_DELETE_MASK (1 << 1)
diff --git a/include/core/window.h b/include/core/window.h
index 08b6e68..6f1ea1b 100644
--- a/include/core/window.h
+++ b/include/core/window.h
@@ -369,8 +369,6 @@ class CompWindow :
int mapNum () const;
- CompStruts * struts ();
-
int & saveMask ();
XWindowChanges & saveWc ();
@@ -513,6 +511,7 @@ class CompWindow :
static void freePluginClassIndex (unsigned int index);
bool updateStruts ();
+ CompStruts *struts ();
WRAPABLE_HND (0, WindowInterface, void, getOutputExtents,
CompWindowExtents&);