Skip to content

Commit

Permalink
Save correct window size on exit (#570)
Browse files Browse the repository at this point in the history
Co-authored-by: simeplejack-src <example@example.com>
  • Loading branch information
simplejack-src and simeplejack-src committed Mar 15, 2023
1 parent 67dee48 commit efb1a66
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions xed/xed-window.c
Expand Up @@ -182,12 +182,7 @@ save_window_state (GtkWidget *widget)
if ((window->priv->window_state &
(GDK_WINDOW_STATE_MAXIMIZED | GDK_WINDOW_STATE_FULLSCREEN)) == 0)
{
GtkAllocation allocation;

gtk_widget_get_allocation (widget, &allocation);

window->priv->width = allocation.width;
window->priv->height = allocation.height;
gtk_window_get_size(GTK_WINDOW(widget), &window->priv->width, &window->priv->height);

g_settings_set (window->priv->window_settings, XED_SETTINGS_WINDOW_SIZE,
"(ii)", window->priv->width, window->priv->height);
Expand Down

0 comments on commit efb1a66

Please sign in to comment.