Go to the documentation of this file.
19 #ifndef MIRAL_SHELL_FLOATING_WINDOW_MANAGER_H
20 #define MIRAL_SHELL_FLOATING_WINDOW_MANAGER_H
40 std::shared_ptr<SplashSession>
const& spinner,
42 std::function<
void()>& shutdown_hook);
74 static const int modifier_mask =
84 int old_touch_pinch_top = 0;
85 int old_touch_pinch_left = 0;
86 int old_touch_pinch_width = 0;
87 int old_touch_pinch_height = 0;
88 bool pinching =
false;
90 std::shared_ptr<SplashSession>
const spinner;
92 std::unique_ptr<DecorationProvider>
const decoration_provider;
94 void keep_window_within_constraints(
101 std::chrono::steady_clock::time_point last_resize;
103 void advise_adding_to_workspace(
104 std::shared_ptr<miral::Workspace>
const& workspace,
105 std::vector<miral::Window>
const& windows)
override;
107 auto confirm_placement_on_display(
113 void switch_workspace_to(
114 std::shared_ptr<miral::Workspace>
const& workspace,
117 std::shared_ptr<miral::Workspace> active_workspace;
118 std::map<int, std::shared_ptr<miral::Workspace>> key_to_workspace;
119 std::map<std::shared_ptr<miral::Workspace>,
miral::Window> workspace_to_active;
121 void apply_workspace_visible_to(
miral::Window const& window);
125 void keep_spinner_on_top();
128 #endif //MIRAL_SHELL_FLOATING_WINDOW_MANAGER_H
Mir Abstraction Layer.
Definition: floating_window_manager.h:29
Definition: application_info.h:32
Definition: window_specification.h:44
Minimal implementation of a floating window management policy.
Definition: minimal_window_manager.h:30
Definition: rectangle.h:34
Handle class to manage a Mir surface. It may be null (e.g. default initialized)
Definition: window.h:38
~FloatingWindowManagerPolicy()
Definition: floating_window_manager.h:36
Definition: internal_client.h:71
Basic geometry types. Types for dimensions, displacements, etc. and the operations that they support.
Definition: dimensions.h:31
Definition: displacement.h:34
Definition: window_info.h:33
Definition: decoration_provider.h:29
Copyright © 2012-2020
Canonical Ltd.
Generated on Sun Sep 27 19:03:53 UTC 2020
This documentation is licensed under the GPL version 2 or 3.