Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(415)

Unified Diff: content/browser/renderer_host/render_widget_host_gtk.cc

Issue 7241003: Fix a bug where window.screen would return 0, 0 as the width and height (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_gtk.cc
diff --git a/content/browser/renderer_host/render_widget_host_gtk.cc b/content/browser/renderer_host/render_widget_host_gtk.cc
index b7dd333bf5be8830824abc14d83c9f8e9ba37ec7..7233ba06ed18f0b14ea5268e3b6171de3a5ff0e2 100644
--- a/content/browser/renderer_host/render_widget_host_gtk.cc
+++ b/content/browser/renderer_host/render_widget_host_gtk.cc
@@ -28,7 +28,7 @@ void RenderWidgetHost::OnMsgGetScreenInfo(gfx::NativeViewId view,
gdk_window = widget->window;
} else {
GdkDisplay* display = gdk_display_get_default();
- gdk_window = gdk_display_get_window_at_pointer(display, NULL, NULL);
+ gdk_window = gdk_display_get_default_group(display);
}
if (!gdk_window)
return;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698