diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2015-02-03 13:32:06 +0100 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2015-02-03 13:32:06 +0100 |
| commit | 41eee3e4c215629a0e842e45969fa4afc9cdcfe2 (patch) | |
| tree | 606f7010652e1768adb8b9ed418950b90fb569ca /panel | |
| parent | 21d287b5d4bfd9d73f9decce76024b8994818a3e (diff) | |
DecorationsMenuEntry, PanelMenuView: don't open menus on unfocused windows if not enabled
(bzr r3899.2.60)
Diffstat (limited to 'panel')
| -rw-r--r-- | panel/PanelMenuView.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/panel/PanelMenuView.cpp b/panel/PanelMenuView.cpp index 0c8c94be7..368312118 100644 --- a/panel/PanelMenuView.cpp +++ b/panel/PanelMenuView.cpp @@ -1495,11 +1495,14 @@ void PanelMenuView::ActivateIntegratedMenus(nux::Point const& click) if (!layout_->GetAbsoluteGeometry().IsInside(click)) return; - unsigned double_click_wait = Settings::Instance().lim_double_click_wait(); + auto& settings = Settings::Instance(); - if (double_click_wait > 0) + if (!focused && !settings.lim_unfocused_popup()) + return; + + if (settings.lim_double_click_wait() > 0) { - sources_.AddTimeout(double_click_wait, [this, click] { + sources_.AddTimeout(settings.lim_double_click_wait(), [this, click] { ActivateEntryAt(click.x, click.y); return false; }, INTEGRATED_MENUS_DOUBLE_CLICK_TIMEOUT); |
