deine mum

This commit is contained in:
2025-12-30 21:55:11 +01:00
parent 9b5db719cb
commit 2d5b492da8
7 changed files with 55 additions and 20 deletions

View File

@@ -29,8 +29,6 @@ App::App() {
continue;
}
auto bar = new Bar(monitor->gobj(), hyprlandMonitor->id);
bar->set_application(app);
@@ -40,6 +38,7 @@ App::App() {
}
});
app->signal_shutdown().connect([&]() {
for (auto bar : bars) {
delete bar;

View File

@@ -6,7 +6,6 @@
#include <vector>
#include "glib.h"
#include "sigc++/signal.h"
BluetoothService::BluetoothService() {
GError *error = nullptr;

View File

@@ -258,10 +258,10 @@ void HyprlandService::onUrgentEvent(std::string windowAddress) {
auto it = this->workspaces.find(workspaceId);
if (it != this->workspaces.end() && it->second) {
if (std::find(it->second->urgentWindows.begin(),
it->second->urgentWindows.end(), windowAddress) ==
it->second->urgentWindows.end()) {
it->second->urgentWindows.push_back(windowAddress);
WorkspaceState *ws = it->second;
auto uit = std::find(ws->urgentWindows.begin(), ws->urgentWindows.end(), windowAddress);
if (uit == ws->urgentWindows.end()) {
ws->urgentWindows.push_back(windowAddress);
workspaceStateChanged.emit();
}
}

View File

@@ -1,4 +1,6 @@
#include "widgets/bluetooth.hpp"
#include "gtkmm/label.h"
BluetoothWidget::BluetoothWidget() : Gtk::Box() {
this->set_orientation(Gtk::Orientation::VERTICAL);

View File

@@ -41,18 +41,17 @@ WorkspaceIndicator::WorkspaceIndicator(int monitorId)
overlay->add_controller(gesture);
overlay->add_css_class("workspace-pill");
// if (i == 6 || i == 7) {
// auto indicator = Gtk::make_managed<Gtk::Label>(i == 6 ? "🫱🏻" : "🫲🏻");
// indicator->add_css_class(i == 6 ? "workspace-pill-six" : "workspace-pill-seven");
// indicator->set_valign(Gtk::Align::END);
// indicator->set_halign(i == 6 ? Gtk::Align::START : Gtk::Align::END);
// overlay->set_child(*indicator);
// overlay->add_overlay(*numLabel);
// pillContainer->append(*overlay);
// } else {
if (i == 6 || i == 7) {
auto indicator = Gtk::make_managed<Gtk::Label>(i == 6 ? "🫱🏻" : "🫲🏻");
indicator->add_css_class(i == 6 ? "workspace-pill-six" : "workspace-pill-seven");
indicator->set_valign(Gtk::Align::END);
overlay->set_child(*indicator);
overlay->add_overlay(*numLabel);
pillContainer->append(*overlay);
} else {
overlay->set_child(*numLabel);
pillContainer->append(*overlay);
// }
}
append(*pillContainer);
}