aboutsummaryrefslogtreecommitdiff
path: root/src/ui.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.hh')
-rw-r--r--src/ui.hh5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui.hh b/src/ui.hh
index 3b61f69b..775a35ed 100644
--- a/src/ui.hh
+++ b/src/ui.hh
@@ -129,10 +129,13 @@ public:
if (e == FL_ENTER) {
color(light_color); // {17,26,51}
redraw();
- } else if (e == FL_LEAVE || e == FL_RELEASE) {
+ } else if (e == FL_LEAVE || e == FL_RELEASE || e == FL_HIDE) {
color(norm_color);
redraw();
}
+ } else if (e == FL_DEACTIVATE && color() != norm_color) {
+ color(norm_color);
+ redraw();
}
return Fl_Button::handle(e);
}