summaryrefslogtreecommitdiff
path: root/plugins/unityshell
diff options
authorMarco Trevisan (TreviƱo) <mail@3v1n0.net>2016-09-01 23:56:24 +0000
committerBileto Bot <ci-train-bot@canonical.com>2016-09-01 23:56:24 +0000
commit960a204e08555bc6a0605f2cd0a3cbb2f81fcb58 (patch)
treed77062a12cfcca9947420b54f3980583555b91af /plugins/unityshell
parent16db9de3a5120192be79b5ada3df45ebfe65b323 (diff)
parent14800151f8fd651a1405f3026845089e140a216d (diff)
InputMonitor: add an unity class that monitors XInput2 events and converts them to XEvent
Clients of this class can register event handlers, and when an interested event will hit our event filter function (that is set only if we have handlers), then we notify them with a standard XEvent struct, converted from the XIDeviceEvent cookie. The nice thing of this monitor is that it always reports events, despite the X grabs. Approved by: Andrea Azzarone (bzr r4182)
Diffstat (limited to 'plugins/unityshell')
-rw-r--r--plugins/unityshell/src/unityshell.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/unityshell/src/unityshell.h b/plugins/unityshell/src/unityshell.h
index d11a2322a..43df66e72 100644
--- a/plugins/unityshell/src/unityshell.h
+++ b/plugins/unityshell/src/unityshell.h
@@ -56,6 +56,7 @@
#include "DashStyle.h"
#include "EdgeBarrierController.h"
#include "FavoriteStoreGSettings.h"
+#include "InputMonitor.h"
#include "ShortcutController.h"
#include "LauncherController.h"
#include "LockScreenController.h"
@@ -317,6 +318,7 @@ private:
internal::FavoriteStoreGSettings favorite_store_;
ThumbnailGenerator thumbnail_generator_;
lockscreen::Settings lockscreen_settings_;
+ input::Monitor input_monitor_;
/* The window thread should be the last thing removed, as c++ does it in reverse order */
std::unique_ptr<nux::WindowThread> wt;