refactor: remove wlroots dependency

This commit is contained in:
Alex 2019-05-20 09:48:57 +02:00
parent 913d0f7ad0
commit 03e43fb31d
3 changed files with 2 additions and 3 deletions

View File

@ -17,4 +17,4 @@ script:
- echo FROM alexays/waybar:${distro} > Dockerfile
- echo ADD . /root >> Dockerfile
- docker build -t waybar .
- docker run waybar /bin/sh -c "cd /root && git clone --depth=1 https://github.com/swaywm/wlroots subprojects/wlroots && meson build && ninja -C build"
- docker run waybar /bin/sh -c "cd /root && meson build && ninja -C build"

View File

@ -51,7 +51,6 @@ fmt = dependency('fmt', version : ['>=5.3.0'], fallback : ['fmt', 'fmt_dep'])
wayland_client = dependency('wayland-client')
wayland_cursor = dependency('wayland-cursor')
wayland_protos = dependency('wayland-protocols')
wlroots = dependency('wlroots', fallback: ['wlroots', 'wlroots'])
gtkmm = dependency('gtkmm-3.0')
dbusmenu_gtk = dependency('dbusmenu-gtk3-0.4', required: get_option('dbusmenu-gtk'))
giounix = dependency('gio-unix-2.0', required: get_option('dbusmenu-gtk'))
@ -125,7 +124,6 @@ executable(
src_files,
dependencies: [
thread_dep,
wlroots,
client_protos,
wayland_client,
fmt,

View File

@ -593,6 +593,7 @@ int waybar::modules::Network::handleEvents(struct nl_msg *msg, void *data) {
}
// Check for valid interface
if (rtif->ifi_index == net->ifid_) {
net->linked_ = true;
// Get Iface and WIFI info
net->getInterfaceAddress();
net->thread_timer_.wake_up();