summaryrefslogtreecommitdiff
path: root/src/privatescreen.h
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@opencompositing.org>2008-08-07 00:21:48 +0200
committerDennis Kasprzyk <onestone@opencompositing.org>2008-08-07 00:21:48 +0200
commitdce5baa9357574fc093a9d7a78849eef564acec1 (patch)
treef53fcebb070e8e2a1a969210ce35f1d8ef4ced70 /src/privatescreen.h
parent3f24e311b1a3b32293dabcf8c8efd33090e80217 (diff)
downloadunity-window-decorator-dce5baa9357574fc093a9d7a78849eef564acec1.tar.gz
unity-window-decorator-dce5baa9357574fc093a9d7a78849eef564acec1.tar.bz2
Handle passive grabs as STL lists.
Diffstat (limited to 'src/privatescreen.h')
-rw-r--r--src/privatescreen.h21
1 files changed, 17 insertions, 4 deletions
diff --git a/src/privatescreen.h b/src/privatescreen.h
index 55210dc..86ea79f 100644
--- a/src/privatescreen.h
+++ b/src/privatescreen.h
@@ -9,6 +9,21 @@
class PrivateScreen {
public:
+ class KeyGrab {
+ public:
+ int keycode;
+ unsigned int modifiers;
+ int count;
+ };
+
+ class ButtonGrab {
+ public:
+ int button;
+ unsigned int modifiers;
+ int count;
+ };
+
+ public:
PrivateScreen (CompScreen *screen);
~PrivateScreen ();
@@ -189,10 +204,8 @@ class PrivateScreen {
CompWindow **clientList;
int nClientList;
- CompButtonGrab *buttonGrab;
- int nButtonGrab;
- CompKeyGrab *keyGrab;
- int nKeyGrab;
+ std::list<ButtonGrab> buttonGrabs;
+ std::list<KeyGrab> keyGrabs;
std::list<CompScreen::Grab> grabs;