diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-27 17:38:13 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-27 17:38:13 +0000 |
commit | 56ebdfd3a7a7c8fadbf5bea17aaf7b4cef0bae8b (patch) | |
tree | f871036a1532b804390a40eba177cd25e1ecc82e | |
parent | bf16243ba24a3c68b8bad2491245fc5cd67fb391 (diff) | |
download | chromium_src-56ebdfd3a7a7c8fadbf5bea17aaf7b4cef0bae8b.zip chromium_src-56ebdfd3a7a7c8fadbf5bea17aaf7b4cef0bae8b.tar.gz chromium_src-56ebdfd3a7a7c8fadbf5bea17aaf7b4cef0bae8b.tar.bz2 |
Gtk: gtk_window_present when an already-showing browser window is showing and we want to show it again.
I think this will be very WM-specific on whether it works. It seems that a lot of WMs don't want to allow windows from groups that don't have focus to do this. For example: http://blogs.gnome.org/metacity/2007/12/24/stacking/
BUG=17767
Review URL: http://codereview.chromium.org/160149
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21657 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/gtk/browser_window_gtk.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/gtk/browser_window_gtk.cc b/chrome/browser/gtk/browser_window_gtk.cc index bcf46b2..eb2a8a7 100644 --- a/chrome/browser/gtk/browser_window_gtk.cc +++ b/chrome/browser/gtk/browser_window_gtk.cc @@ -513,7 +513,8 @@ void BrowserWindowGtk::Show() { } #endif - gtk_widget_show(GTK_WIDGET(window_)); + // If we are not already visible, this will just show the window. + gtk_window_present(window_); } void BrowserWindowGtk::SetBounds(const gfx::Rect& bounds) { |