Skip to content

Commit a53bac5

Browse files
committed
Fix hiding of titlebar
1 parent 13f970e commit a53bac5

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

data/agnostics.ui

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<property name="name">pixbox</property>
77
<property name="can-focus">False</property>
88
<property name="resizable">False</property>
9+
<property name="decorated">False</property>
910
<property name="modal">True</property>
1011
<property name="window-position">center-on-parent</property>
1112
<property name="default-width">340</property>
@@ -92,6 +93,15 @@
9293
</child>
9394
</object>
9495
</child>
96+
<child type="titlebar">
97+
<object class="GtkHeaderBar">
98+
<property name="visible">True</property>
99+
<property name="can-focus">False</property>
100+
<child>
101+
<placeholder/>
102+
</child>
103+
</object>
104+
</child>
95105
</object>
96106
<object class="GtkWindow" id="piag_wd">
97107
<property name="can-focus">False</property>

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
agnostics (0.14) bookworm; urgency=medium
2+
3+
* Fix hiding of titlebar under Wayland
4+
5+
-- Simon Long <simon@raspberrypi.com> Mon, 15 Jan 2024 07:56:05 +0000
6+
17
agnostics (0.13) bullseye; urgency=medium
28

39
* Set undecorated dialogs in code

src/agnostics.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,6 @@ static void run_test (GtkWidget *wid, gpointer data)
326326
gtk_label_set_text (GTK_LABEL (msg_label), _("Running tests..."));
327327
gtk_window_set_transient_for (GTK_WINDOW (msg_wd), GTK_WINDOW (piag_wd));
328328
gtk_widget_show (msg_wd);
329-
gtk_window_set_decorated (GTK_WINDOW (msg_wd), FALSE);
330329

331330
// add a timer to update the dialog
332331
gdk_threads_add_timeout (1000, dialog_update, NULL);

0 commit comments

Comments
 (0)