deine mum
This commit is contained in:
@@ -217,8 +217,8 @@ void HyprlandService::refresh_workspaces() {
|
||||
state.id = slot;
|
||||
state.hyprId = -1;
|
||||
state.label = std::to_string(slot);
|
||||
state.focused = (slot == focusedSlot);
|
||||
state.active = state.focused;
|
||||
state.active = (slot == focusedSlot);
|
||||
state.focused = state.focused;
|
||||
state.urgent = false;
|
||||
monitor.workspaceStates.emplace(slot, state);
|
||||
}
|
||||
@@ -384,4 +384,4 @@ void HyprlandService::handle_urgent_window(std::string windowAddress) {
|
||||
workspaceStateChanged.emit(monitor.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,13 @@
|
||||
#include "widgets/webWidget.hpp"
|
||||
#include <gtkmm/box.h>
|
||||
#include <gtkmm/label.h>
|
||||
#include <webkit/webkit.h>
|
||||
|
||||
WebWidget::WebWidget(std::string label, std::string title, std::string url) {
|
||||
set_label(label);
|
||||
WebWidget::WebWidget(std::string icon, std::string title, std::string url) {
|
||||
auto label = Gtk::make_managed<Gtk::Label>(icon);
|
||||
label->add_css_class("icon-label");
|
||||
set_child(*label);
|
||||
|
||||
signal_clicked().connect(
|
||||
sigc::mem_fun(*this, &WebWidget::on_toggle_window));
|
||||
|
||||
@@ -23,12 +27,10 @@ WebWidget::WebWidget(std::string label, std::string title, std::string url) {
|
||||
|
||||
auto settings = webkit_web_view_get_settings(WEBKIT_WEB_VIEW(webview));
|
||||
webkit_settings_set_hardware_acceleration_policy(
|
||||
settings, WEBKIT_HARDWARE_ACCELERATION_POLICY_ALWAYS);
|
||||
settings, WEBKIT_HARDWARE_ACCELERATION_POLICY_NEVER);
|
||||
|
||||
webkit_web_view_load_uri(WEBKIT_WEB_VIEW(webview), url.c_str());
|
||||
|
||||
// Use C API to set child because we don't have a C++ wrapper for
|
||||
// WebKitWebView
|
||||
gtk_popover_set_child(popover->gobj(), webview);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user