From ca5911fe94f6406675070c1bd31e65451730d3f9 Mon Sep 17 00:00:00 2001 From: Sanel Zukan Date: Mon, 3 Jun 2013 21:47:26 +0000 Subject: [PATCH] Use flat box so redraw() can update changed image correctly. --- ede-panel/applets/battery-monitor/BatteryMonitor.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ede-panel/applets/battery-monitor/BatteryMonitor.cpp b/ede-panel/applets/battery-monitor/BatteryMonitor.cpp index 7bf4c8d..77e976c 100644 --- a/ede-panel/applets/battery-monitor/BatteryMonitor.cpp +++ b/ede-panel/applets/battery-monitor/BatteryMonitor.cpp @@ -81,7 +81,11 @@ private: BatteryList batts; public: - BatteryMonitor() : Fl_Box(0, 0, 30, 25), bimg(0) { scan_and_init(); } + BatteryMonitor() : Fl_Box(0, 0, 30, 25), bimg(0) { + box(FL_FLAT_BOX); + scan_and_init(); + } + EdbusConnection &connection() { return con; } void tooltip_printf(const char *fmt, ...);