mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
feat(modules): generic label module to allow max-length on all labels
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
#include "modules/sway/ipc/client.hpp"
|
||||
|
||||
waybar::modules::sway::Window::Window(Bar &bar, Json::Value config)
|
||||
: bar_(bar), config_(std::move(config))
|
||||
: ALabel(std::move(config)), bar_(bar)
|
||||
{
|
||||
label_.set_name("window");
|
||||
std::string socketPath = getSocketPath();
|
||||
@ -59,7 +59,3 @@ void waybar::modules::sway::Window::getFocusedWindow()
|
||||
std::cerr << e.what() << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
waybar::modules::sway::Window::operator Gtk::Widget &() {
|
||||
return label_;
|
||||
}
|
||||
|
Reference in New Issue
Block a user