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);
79 void handle_request_resize(
84 static const int modifier_mask =
96 int old_touch_pinch_top = 0;
97 int old_touch_pinch_left = 0;
98 int old_touch_pinch_width = 0;
99 int old_touch_pinch_height = 0;
100 bool pinching =
false;
102 bool pointer_moving =
false;
103 bool pointer_resizing =
false;
105 unsigned active_pointer_modifiers = 0;
108 Point resize_top_left;
111 std::shared_ptr<SplashSession>
const spinner;
113 std::unique_ptr<DecorationProvider>
const decoration_provider;
117 void keep_window_within_constraints(
121 Height& new_height)
const;
124 std::chrono::steady_clock::time_point last_resize;
126 void advise_adding_to_workspace(
127 std::shared_ptr<miral::Workspace>
const& workspace,
128 std::vector<miral::Window>
const& windows)
override;
130 auto confirm_placement_on_display(
136 void switch_workspace_to(
137 std::shared_ptr<miral::Workspace>
const& workspace,
140 std::shared_ptr<miral::Workspace> active_workspace;
141 std::map<int, std::shared_ptr<miral::Workspace>> key_to_workspace;
142 std::map<std::shared_ptr<miral::Workspace>,
miral::Window> workspace_to_active;
144 void apply_workspace_visible_to(
miral::Window const& window);
148 void keep_spinner_on_top();
151 #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:28
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