From 76d0d3ec19c4e768f1cef0813a3fa9d2622393d2 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sun, 25 May 2014 11:44:25 +0800 Subject: [PATCH] gtk: Fix setting unresizable window. --- atom/browser/native_window_gtk.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atom/browser/native_window_gtk.cc b/atom/browser/native_window_gtk.cc index d556276633ad..ea78f5e23e96 100644 --- a/atom/browser/native_window_gtk.cc +++ b/atom/browser/native_window_gtk.cc @@ -315,7 +315,7 @@ gfx::Size NativeWindowGtk::GetMaximumSize() { void NativeWindowGtk::SetResizable(bool resizable) { // Should request widget size after setting unresizable, otherwise the // window will shrink to a very small size. - if (!IsResizable()) { + if (!IsResizable() || !has_ever_been_shown_) { gint width, height; gtk_window_get_size(window_, &width, &height); gtk_widget_set_size_request(GTK_WIDGET(window_), width, height);