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);
83 void handle_request_resize(
88 static const int modifier_mask =
100 int old_touch_pinch_top = 0;
101 int old_touch_pinch_left = 0;
102 int old_touch_pinch_width = 0;
103 int old_touch_pinch_height = 0;
104 bool pinching =
false;
106 bool pointer_moving =
false;
107 bool pointer_resizing =
false;
109 unsigned active_pointer_modifiers = 0;
112 Point resize_top_left;
115 std::shared_ptr<SplashSession>
const spinner;
117 std::unique_ptr<DecorationProvider>
const decoration_provider;
121 void keep_window_within_constraints(
125 Height& new_height)
const;
128 std::chrono::steady_clock::time_point last_resize;
130 void advise_adding_to_workspace(
131 std::shared_ptr<miral::Workspace>
const& workspace,
132 std::vector<miral::Window>
const& windows)
override;
134 auto confirm_placement_on_display(
140 void switch_workspace_to(
141 std::shared_ptr<miral::Workspace>
const& workspace,
144 std::shared_ptr<miral::Workspace> active_workspace;
145 std::map<int, std::shared_ptr<miral::Workspace>> key_to_workspace;
146 std::map<std::shared_ptr<miral::Workspace>,
miral::Window> workspace_to_active;
148 void apply_workspace_visible_to(
miral::Window const& window);
152 void keep_spinner_on_top();
155 #endif //MIRAL_SHELL_FLOATING_WINDOW_MANAGER_H
Definition: application_info.h:31
Definition: internal_client.h:70
Widely accepted defaults for window management.
Definition: canonical_window_manager.h:28
Definition: decoration_provider.h:58
Definition: window_info.h:32
Definition: window_specification.h:43
Handle class to manage a Mir surface. It may be null (e.g. default initialized)
Definition: window.h:37
Definition: displacement.h:32
Definition: rectangle.h:33
Basic geometry types. Types for dimensions, displacements, etc. and the operations that they support...
Definition: dimensions.h:30
Definition: floating_window_manager.h:35
Mir Abstraction Layer.
Definition: floating_window_manager.h:29