mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:38:11 +00:00
WindowServer+LibGUI: Add a way to force a window to have a drop shadow
This commit is contained in:
parent
3368e54224
commit
c2dfa9d54c
7 changed files with 41 additions and 6 deletions
|
@ -146,6 +146,7 @@ void Window::show()
|
|||
m_resizable,
|
||||
m_fullscreen,
|
||||
m_frameless,
|
||||
m_forced_shadow,
|
||||
m_accessory,
|
||||
m_opacity_when_windowless,
|
||||
m_alpha_hit_threshold,
|
||||
|
@ -927,6 +928,16 @@ void Window::set_frameless(bool frameless)
|
|||
apply_icon();
|
||||
}
|
||||
|
||||
void Window::set_forced_shadow(bool shadow)
|
||||
{
|
||||
if (m_forced_shadow == shadow)
|
||||
return;
|
||||
m_forced_shadow = shadow;
|
||||
if (!is_visible())
|
||||
return;
|
||||
WindowServerConnection::the().async_set_forced_shadow(m_window_id, shadow);
|
||||
}
|
||||
|
||||
bool Window::is_maximized() const
|
||||
{
|
||||
if (!is_visible())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue