From 44296483e3a583e15713df4f7173d8440d466410 Mon Sep 17 00:00:00 2001 From: "thestig@chromium.org" Date: Thu, 29 Oct 2009 02:55:44 +0000 Subject: Linux: set minimum window size to 100x100 so it does not disappear with a custom frame and so it is easy to resize. BUG=11258 TEST=Turn on custom frame, try to make window as small as possible. It should not be infinitely small or a pain to resize. Review URL: http://codereview.chromium.org/347013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30426 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/gtk/browser_window_gtk.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'chrome') diff --git a/chrome/browser/gtk/browser_window_gtk.cc b/chrome/browser/gtk/browser_window_gtk.cc index cf7f6fb..3dedbd5 100644 --- a/chrome/browser/gtk/browser_window_gtk.cc +++ b/chrome/browser/gtk/browser_window_gtk.cc @@ -1536,10 +1536,12 @@ void BrowserWindowGtk::BookmarkBarIsFloating(bool is_floating) { } void BrowserWindowGtk::SetGeometryHints() { - // Allow the user to resize us arbitrarily small. + // Do not allow the user to resize us arbitrarily small. When using the + // custom frame, the window can disappear entirely while resizing, or get + // to a size that's very hard to resize. GdkGeometry geometry; - geometry.min_width = 1; - geometry.min_height = 1; + geometry.min_width = 100; + geometry.min_height = 100; gtk_window_set_geometry_hints(window_, NULL, &geometry, GDK_HINT_MIN_SIZE); // If we call gtk_window_maximize followed by gtk_window_present, compiz gets -- cgit v1.1