mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
Network detect (#26)
This commit is contained in:
@ -27,7 +27,7 @@ waybar::modules::Battery::Battery(Json::Value config)
|
||||
Glib::signal_idle().connect_once(sigc::mem_fun(*this, &Battery::update));
|
||||
label_.set_name("battery");
|
||||
thread_ = [this, fd] {
|
||||
struct inotify_event event = {};
|
||||
struct inotify_event event = {0};
|
||||
int nbytes = read(fd, &event, sizeof(event));
|
||||
if (nbytes != sizeof(event)) {
|
||||
return;
|
||||
|
Reference in New Issue
Block a user