1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:17:35 +00:00

WindowServer+LibGUI: Add a way to force a window to have a drop shadow

This commit is contained in:
Andreas Kling 2021-07-04 23:10:53 +02:00
parent 3368e54224
commit c2dfa9d54c
7 changed files with 41 additions and 6 deletions

View file

@ -114,6 +114,9 @@ public:
void check_untile_due_to_resize(Gfx::IntRect const&);
bool set_untiled(Optional<Gfx::IntPoint> fixed_point = {});
void set_forced_shadow(bool b) { m_forced_shadow = b; }
bool has_forced_shadow() const { return m_forced_shadow; }
bool is_occluded() const { return m_occluded; }
void set_occluded(bool);
@ -390,6 +393,7 @@ private:
bool m_modal { false };
bool m_minimizable { false };
bool m_frameless { false };
bool m_forced_shadow { false };
bool m_resizable { false };
Optional<Gfx::IntSize> m_resize_aspect_ratio {};
WindowMinimizedState m_minimized_state { WindowMinimizedState::None };