diff options
| -rw-r--r-- | unity-shared/InputMonitor.cpp | 6 |
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"; } } |
