File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Userland/Services/WindowServer Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -45,10 +45,7 @@ class Overlay {
4545 void set_enabled (bool );
4646 bool is_enabled () const { return m_list_node.is_in_list (); }
4747
48- virtual void theme_changed ()
49- {
50- rect_changed (m_rect);
51- }
48+ virtual void theme_changed () { invalidate (); }
5249
5350 bool invalidate ();
5451
@@ -57,7 +54,7 @@ class Overlay {
5754
5855 void set_rect (Gfx::IntRect const &);
5956
60- virtual void rect_changed (Gfx::IntRect const &) {};
57+ virtual void rect_changed (Gfx::IntRect const &) { }
6158
6259private:
6360 [[nodiscard]] bool apply_render_rect ()
@@ -108,6 +105,8 @@ class RectangularOverlay : public Overlay {
108105 void clear_bitmaps ();
109106 virtual void rect_changed (Gfx::IntRect const &) override ;
110107
108+ virtual void theme_changed () override { invalidate_content (); }
109+
111110 void invalidate_content ();
112111
113112private:
You can’t perform that action at this time.
0 commit comments