Skip to content

Commit

Permalink
Merge pull request WayfireWM#2 from raspberrypi-ui/deco-button-active…
Browse files Browse the repository at this point in the history
…-default

pixdecor: Set button default active to false to avoid unitialized usage
  • Loading branch information
spl237 authored Nov 9, 2023
2 parents ed90981 + 6b7b955 commit 27bab65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/pixdecor/deco-button.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class button_t : public noncopyable_t

button_type_t type;
wf::simple_texture_t button_texture;
bool active;
bool active = false;
wf::geometry_t geometry;

/* Whether the button is currently being hovered */
Expand Down

0 comments on commit 27bab65

Please sign in to comment.