mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:37:36 +00:00
WindowServer: Constrain rendering windows to one screen in some cases
When a window is maximized or tiled then we want to constrain rendering that window to the screen it's on. This prevents "bleeding" of the window frame and shadow onto the adjacent screen(s).
This commit is contained in:
parent
4392da970a
commit
229b541e5d
3 changed files with 34 additions and 11 deletions
|
@ -54,6 +54,7 @@ public:
|
|||
|
||||
Gfx::IntRect rect() const;
|
||||
Gfx::IntRect render_rect() const;
|
||||
Gfx::IntRect unconstrained_render_rect() const;
|
||||
Gfx::DisjointRectSet opaque_render_rects() const;
|
||||
Gfx::DisjointRectSet transparent_render_rects() const;
|
||||
|
||||
|
@ -131,6 +132,8 @@ private:
|
|||
Gfx::WindowTheme::WindowState window_state_for_theme() const;
|
||||
String computed_title() const;
|
||||
|
||||
Gfx::IntRect constrained_render_rect_to_screen(const Gfx::IntRect&) const;
|
||||
|
||||
Window& m_window;
|
||||
NonnullOwnPtrVector<Button> m_buttons;
|
||||
Button* m_close_button { nullptr };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue