Commit c88c7ef2 authored by Adrien Plazas's avatar Adrien Plazas
Browse files

gtkwindow: Maximize resizable pseudo-dialogs

This is less agressive than resizing all resizable windows.
parent ae4eff58
......@@ -39,6 +39,7 @@
#include "gtkcssiconthemevalueprivate.h"
#include "gtkcssrgbavalueprivate.h"
#include "gtkcssshadowsvalueprivate.h"
#include "gtkdialog.h"
#include "gtkkeyhash.h"
#include "gtkmain.h"
#include "gtkmnemonichash.h"
......@@ -7357,11 +7358,14 @@ gtk_window_realize (GtkWidget *widget)
GtkWindowPrivate *priv;
gint i;
GList *link;
gboolean is_pseudo_dialog;
window = GTK_WINDOW (widget);
priv = window->priv;
if (gtk_window_get_resizable (window))
is_pseudo_dialog = !GTK_IS_DIALOG (widget) &&
!!gtk_window_get_transient_for (window);
if (is_pseudo_dialog && gtk_window_get_resizable (window))
gtk_window_maximize (window);
if (!priv->client_decorated && gtk_window_should_use_csd (window))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment