diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2013-01-21 17:07:47 +0100 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2013-01-21 17:07:47 +0100 |
| commit | ef80a598119ed266f8fb930a75dd655a7911ad8b (patch) | |
| tree | e8fd8dd7e3ff3918194bf863e86c319e5c7c7073 /shortcuts | |
| parent | b42e77a7bac0f6b22d31bd25715e6bb22f43fb39 (diff) | |
StandaloneShortcuts: override GetGeometryPerMonitor to make view monitor independent
(bzr r2919.3.38)
Diffstat (limited to 'shortcuts')
| -rw-r--r-- | shortcuts/StandaloneShortcuts.cpp | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/shortcuts/StandaloneShortcuts.cpp b/shortcuts/StandaloneShortcuts.cpp index a50af6900..2f4f126a0 100644 --- a/shortcuts/StandaloneShortcuts.cpp +++ b/shortcuts/StandaloneShortcuts.cpp @@ -33,6 +33,25 @@ using namespace unity; +namespace unity +{ +namespace shortcut +{ +struct StandaloneController : Controller +{ + StandaloneController(std::list<AbstractHint::Ptr> const& hints, + BaseWindowRaiser::Ptr const& raiser) + : Controller(hints, raiser) + {} + + nux::Geometry GetGeometryPerMonitor(int monitor) override + { + return nux::Geometry(0, 0, 1024, 700); + } +}; +} +} + struct ShortcutsWindow { ShortcutsWindow() @@ -260,7 +279,7 @@ void ShortcutsWindow::Init() "initiate_key"))); auto base_window_raiser_ = std::make_shared<shortcut::BaseWindowRaiserImp>(); - controller = std::make_shared<shortcut::Controller>(hints, base_window_raiser_); + controller = std::make_shared<shortcut::StandaloneController>(hints, base_window_raiser_); controller->Show(); } |
