summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBalló György <[email protected]>2026-10-15 12:52:07 +0200
committerLuke from DC <[email protected]>2026-10-15 21:33:57 +0000
commitdbad54448edafdfbf81f6470d1136896791e9519 (patch)
treeda903b99fcfc34c358f816bdbd62329f5d77097f
parent6975249401585f347faf4983e98cfef0516a4137 (diff)
downloadengrampa-master.tar.bz2
engrampa-master.tar.xz
Fix window size growing with client-side decorationsHEADmaster
Use gtk_window_get_size() instead of querying the allocated size to retrieve the window dimensions. This prevents the window size from increasing each time engrampa is opened on Wayland.
-rw-r--r--src/fr-window.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fr-window.c b/src/fr-window.c
index 110367b1..fcdcb348 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -665,8 +665,7 @@ fr_window_close (FrWindow *window)
if (gtk_widget_get_realized (GTK_WIDGET (window))) {
int width, height;
- width = gtk_widget_get_allocated_width (GTK_WIDGET (window));
- height = gtk_widget_get_allocated_height (GTK_WIDGET (window));
+ gtk_window_get_size (GTK_WINDOW (window), &width, &height);
g_settings_set_int (window->priv->settings_ui, PREF_UI_WINDOW_WIDTH, width);
g_settings_set_int (window->priv->settings_ui, PREF_UI_WINDOW_HEIGHT, height);