fix(bar): remove focused window code

pull/1/head
Alexis 2018-08-09 00:41:39 +02:00
parent 7783c940e5
commit 193bd8a79a
2 changed files with 1 additions and 14 deletions

View File

@ -144,20 +144,6 @@ auto waybar::Bar::setup_widgets() -> void
box1.pack_start(center, false, false); box1.pack_start(center, false, false);
box1.pack_end(right, true, true); box1.pack_end(right, true, true);
auto &focused_window = *Gtk::manage(new Gtk::Label());
focused_window.get_style_context()->add_class("focused-window-title");
client.signals.focused_window_name.connect(
[&focused_window](std::string focused_window_name) {
if (focused_window_name.size() > 70)
{
focused_window_name.erase(67);
focused_window_name += "...";
}
focused_window.set_text(focused_window_name);
});
focused_window.set_hexpand(false);
auto &clock = *new waybar::modules::Clock(); auto &clock = *new waybar::modules::Clock();
auto &workspace_selector = *new waybar::modules::WorkspaceSelector(*this); auto &workspace_selector = *new waybar::modules::WorkspaceSelector(*this);
auto &battery = *new waybar::modules::Battery(); auto &battery = *new waybar::modules::Battery();

View File

@ -1,4 +1,5 @@
#include "modules/workspaces.hpp" #include "modules/workspaces.hpp"
#include "idle-client-protocol.h"
#include "ipc/client.hpp" #include "ipc/client.hpp"
waybar::modules::WorkspaceSelector::WorkspaceSelector(Bar &bar) waybar::modules::WorkspaceSelector::WorkspaceSelector(Bar &bar)