fix(bar): remove focused window code
This commit is contained in:
parent
7783c940e5
commit
193bd8a79a
14
src/bar.cpp
14
src/bar.cpp
|
@ -144,20 +144,6 @@ auto waybar::Bar::setup_widgets() -> void
|
|||
box1.pack_start(center, false, false);
|
||||
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 &workspace_selector = *new waybar::modules::WorkspaceSelector(*this);
|
||||
auto &battery = *new waybar::modules::Battery();
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#include "modules/workspaces.hpp"
|
||||
#include "idle-client-protocol.h"
|
||||
#include "ipc/client.hpp"
|
||||
|
||||
waybar::modules::WorkspaceSelector::WorkspaceSelector(Bar &bar)
|
||||
|
|
Loading…
Reference in New Issue