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

Unified Diff: plugin/linux/main_linux.cc

Issue 651066: Linux: Implement cursor type NONE. Also ensure fullscreen windows are created... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: Created 10 years, 10 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 | « plugin/cross/o3d_glue.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: plugin/linux/main_linux.cc
===================================================================
--- plugin/linux/main_linux.cc (revision 39116)
+++ plugin/linux/main_linux.cc (working copy)
@@ -925,6 +925,10 @@
GtkWidget *widget = gtk_window_new(GTK_WINDOW_TOPLEVEL);
// The returned object counts as both a widget and a window.
GtkWindow *window = GTK_WINDOW(widget);
+ // Ensure that the fullscreen window is displayed on the same screen as the
+ // embedded window.
+ GdkScreen *screen = gtk_window_get_screen(GTK_WINDOW(gtk_container_));
+ gtk_window_set_screen(window, screen);
// The window title shouldn't normally be visible, but the user will see it
// if they Alt+Tab to another app.
gtk_window_set_title(window, "O3D Application");
@@ -934,7 +938,6 @@
// with our GL rendering.
gtk_widget_set_double_buffered(widget, FALSE);
gtk_window_set_keep_above(window, TRUE);
- GdkScreen *screen = gtk_window_get_screen(window);
// In the case of Xinerama or TwinView, these will be the dimensions of the
// whole desktop, which is wrong, but the window manager is smart enough to
// restrict our size to that of the main screen.
« no previous file with comments | « plugin/cross/o3d_glue.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698