summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/gtk/browser_window_gtk.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/gtk/browser_window_gtk.cc b/chrome/browser/gtk/browser_window_gtk.cc
index e0c965e..1521eca 100644
--- a/chrome/browser/gtk/browser_window_gtk.cc
+++ b/chrome/browser/gtk/browser_window_gtk.cc
@@ -265,8 +265,8 @@ GdkColor SkColorToGdkColor(const SkColor& color) {
// EWMH for full screen mode.
void SetWindowSize(GtkWindow* window, int width, int height) {
GdkScreen* screen = gtk_window_get_screen(window);
- if (width == gdk_screen_get_width(screen) &&
- height == gdk_screen_get_height(screen)) {
+ if (width >= gdk_screen_get_width(screen) &&
+ height >= gdk_screen_get_height(screen)) {
// Adjust the height so we don't trigger the WM feature.
gtk_window_resize(window, width, height - 1);
} else {