Skip to content

Commit 5c49280

Browse files
committed
WindowServer: Repaint rectangular overlays on theme change
1 parent 36c0871 commit 5c49280

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Userland/Services/WindowServer/Overlays.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff 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

6259
private:
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

113112
private:

0 commit comments

Comments
 (0)