From aa3f5a5a717d8724c1555ce6d4fa90eeae9d7132 Mon Sep 17 00:00:00 2001 From: Steffen Pohle Date: Sun, 11 Feb 2024 18:32:00 +0100 Subject: [PATCH] positioning and hiding on current gnome/wayland installation did not work --- configuration.cc | 2 +- posctl.cc | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/configuration.cc b/configuration.cc index afc6e10..bbe359e 100644 --- a/configuration.cc +++ b/configuration.cc @@ -341,7 +341,7 @@ void Configuration::LoadConfig(std::string filename) { gtk_window_move (GTK_WINDOW(wnd), x, y); gtk_window_resize (GTK_WINDOW(wnd), w, h); gtk_widget_show(wnd); - if (!show) gtk_widget_hide(wnd); + // g_object_set (wnd, "visible", &show, NULL); } } } diff --git a/posctl.cc b/posctl.cc index fd2e0b9..db0fd90 100644 --- a/posctl.cc +++ b/posctl.cc @@ -69,7 +69,6 @@ void cb_posctl_show_window (GtkWidget *widget, gpointer data) { printf ("%s:%d %s\n", __FILE__, __LINE__, __FUNCTION__); GtkWidget *wnd = GTK_WIDGET(gtk_builder_get_object (GTK_BUILDER(_builder_), "window-posctl")); - gtk_widget_show(wnd); }