summaryrefslogtreecommitdiff
path: root/unity-shared
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2016-08-17 18:07:05 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2016-08-17 18:07:05 +0200
commit780d23d54f1ad7985d9afeb58275b1378d545bfc (patch)
tree505050d2c08ad886bfc761315e53a95916e8c2c6 /unity-shared
parent58e8debd8f056ced795235deebb5cc2b2dc7e1f3 (diff)
InputMonitor: add some debugging bits
(bzr r3788.6.18)
Diffstat (limited to 'unity-shared')
-rw-r--r--unity-shared/InputMonitor.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/unity-shared/InputMonitor.cpp b/unity-shared/InputMonitor.cpp
index c39395105..8a56f8a46 100644
--- a/unity-shared/InputMonitor.cpp
+++ b/unity-shared/InputMonitor.cpp
@@ -228,6 +228,10 @@ struct Monitor::Impl
XISelectEvents(dpy, root, selected, G_N_ELEMENTS(selected));
XSync(dpy, False);
+ LOG_DEBUG(logger) << "Pointer clients: " << pointer_callbacks_.size() << ", "
+ << "Key clients: " << key_callbacks_.size() << ", "
+ << "Barrier clients: " << barrier_callbacks_.size();
+
if (!pointer_callbacks_.empty() || !key_callbacks_.empty() || !barrier_callbacks_.empty())
{
if (!event_filter_set_)
@@ -237,12 +241,14 @@ struct Monitor::Impl
}, this});
event_filter_set_ = true;
+ LOG_DEBUG(logger) << "Event filter enabled";
}
}
else if (event_filter_set_)
{
nux::GetGraphicsDisplay()->RemoveEventFilter(this);
event_filter_set_ = false;
+ LOG_DEBUG(logger) << "Event filter disabled";
}
}