diff options
author | Bastien Nocera <hadess@hadess.net> | 2007-10-19 11:29:13 +0000 |
---|---|---|
committer | Bastien Nocera <hadess@src.gnome.org> | 2007-10-19 11:29:13 +0000 |
commit | 52a439ee04db156a6b1424e06c00d6f86460bd87 (patch) | |
tree | 03048184fa4104406b9963bae29c2b111dc880f6 | |
parent | 2717048ee91ca501b55b5d933963d8fe57f2e468 (diff) | |
download | totem-52a439ee04db156a6b1424e06c00d6f86460bd87.tar.gz |
Put the fullscreen window on the screen where the video widget is, when
2007-10-19 Bastien Nocera <hadess@hadess.net>
* browser-plugin/totem-plugin-viewer.c:
(totem_embedded_toggle_fullscreen):
Put the fullscreen window on the screen where the video
widget is, when using Xinerama (Closes: #487932)
svn path=/trunk/; revision=4795
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | browser-plugin/totem-plugin-viewer.c | 11 |
2 files changed, 18 insertions, 0 deletions
@@ -1,5 +1,12 @@ 2007-10-19 Bastien Nocera <hadess@hadess.net> + * browser-plugin/totem-plugin-viewer.c: + (totem_embedded_toggle_fullscreen): + Put the fullscreen window on the screen where the video + widget is, when using Xinerama (Closes: #487932) + +2007-10-19 Bastien Nocera <hadess@hadess.net> + * data/mime-type-list.txt: * data/totem.desktop.in.in.in: Patch from Stephane Loeuillet <leroutier@gmail.com> to fix some warnings in the .desktop diff --git a/browser-plugin/totem-plugin-viewer.c b/browser-plugin/totem-plugin-viewer.c index 40ce885d2..5e8bedce2 100644 --- a/browser-plugin/totem-plugin-viewer.c +++ b/browser-plugin/totem-plugin-viewer.c @@ -1408,6 +1408,17 @@ totem_embedded_toggle_fullscreen (TotemEmbedded *emb) gtk_action_set_sensitive (fs_action, TRUE); } else { + GdkRectangle rect; + int monitor; + + /* Move the fullscreen window to the screen where the + * video widget currently is */ + monitor = gdk_screen_get_monitor_at_window (gtk_widget_get_screen (GTK_WIDGET (emb->bvw)), + GTK_WIDGET (emb->bvw)->window); + gdk_screen_get_monitor_geometry (gtk_widget_get_screen (GTK_WIDGET (emb->bvw)), + monitor, &rect); + gtk_window_move (GTK_WINDOW (emb->fs_window), rect.x, rect.y); + gtk_widget_reparent (GTK_WIDGET (emb->bvw), emb->fs_window); bacon_video_widget_set_fullscreen (emb->bvw, TRUE); gtk_window_fullscreen (GTK_WINDOW (emb->fs_window)); |