summaryrefslogtreecommitdiff
path: root/lockscreen
diff options
Diffstat (limited to 'lockscreen')
-rw-r--r--lockscreen/LockScreenPanel.cpp7
-rw-r--r--lockscreen/LockScreenPanel.h2
2 files changed, 2 insertions, 7 deletions
diff --git a/lockscreen/LockScreenPanel.cpp b/lockscreen/LockScreenPanel.cpp
index 19185b8be..ada4c3139 100644
--- a/lockscreen/LockScreenPanel.cpp
+++ b/lockscreen/LockScreenPanel.cpp
@@ -159,12 +159,7 @@ void Panel::OnEntryShowMenu(std::string const& entry_id, unsigned xid, int x, in
if (!GetInputEventSensitivity())
return;
- if (!active)
- {
- // This is ugly... But Nux fault!
- WindowManager::Default().UnGrabMousePointer(CurrentTime, button, x, y);
- active = true;
- }
+ active = true;
}
void Panel::OnEntryActivateRequest(std::string const& entry_id)
diff --git a/lockscreen/LockScreenPanel.h b/lockscreen/LockScreenPanel.h
index 3d1b0edc7..2ed4c4c49 100644
--- a/lockscreen/LockScreenPanel.h
+++ b/lockscreen/LockScreenPanel.h
@@ -55,7 +55,7 @@ private:
void AddIndicator(indicator::Indicator::Ptr const&);
void RemoveIndicator(indicator::Indicator::Ptr const&);
void OnIndicatorViewUpdated();
- void OnEntryActivated(std::string const& panel, std::string const& entry_id, nux::Rect const& geo);
+ void OnEntryActivated(std::string const& panel, std::string const& entry_id, nux::Rect const&);
void OnEntryShowMenu(std::string const& entry_id, unsigned xid, int x, int y, unsigned button);
void OnEntryActivateRequest(std::string const& entry_id);
void OnEntryEvent(XEvent const&);