summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx/ClassicWindowTheme.h
diff options
context:
space:
mode:
authorTom <tomut@yahoo.com>2021-02-14 16:42:37 -0700
committerAndreas Kling <kling@serenityos.org>2021-02-15 23:07:49 +0100
commitd590e0c946c0c54b30b280987c18a20d60d4195c (patch)
treee83bddec5c8feb4a42fca99713dca02b2c5afc0b /Userland/Libraries/LibGfx/ClassicWindowTheme.h
parentb3f0a5c917a69eaf8a405653ae882f45a03ad467 (diff)
downloadserenity-d590e0c946c0c54b30b280987c18a20d60d4195c.zip
WindowServer: Add support for alpha channel based hit testing
This enables implementing non-rectangular window shapes, including non-rectangular window frames.
Diffstat (limited to 'Userland/Libraries/LibGfx/ClassicWindowTheme.h')
-rw-r--r--Userland/Libraries/LibGfx/ClassicWindowTheme.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGfx/ClassicWindowTheme.h b/Userland/Libraries/LibGfx/ClassicWindowTheme.h
index 165997bfa4..b0f2c86136 100644
--- a/Userland/Libraries/LibGfx/ClassicWindowTheme.h
+++ b/Userland/Libraries/LibGfx/ClassicWindowTheme.h
@@ -52,6 +52,7 @@ public:
{
return compute_frame_colors(state, palette).uses_alpha();
}
+ virtual float frame_alpha_hit_threshold(WindowState) const override { return 1.0f; }
private:
struct FrameColors {