]> www.fi.muni.cz Git - evince.git/blobdiff - shell/ev-window.c
[dualscreen] presentation wrapper and window placement
[evince.git] / shell / ev-window.c
index f0593b2373f53a7a6f51f121dfb879b7689776b6..b7cf4442457105ae55526b442cc5ba896337baca 100644 (file)
@@ -4000,7 +4000,17 @@ ev_window_view_presentation_focus_out (EvWindow *window)
 }
 
 static void
-ev_window_run_presentation_wrapper(){
+ev_window_run_presentation_wrapper ()
+{
+       if ( get_num_monitors(GTK_WINDOW(window) > 1) {
+               EvWindow *presentation_window = window;
+               EvDSCWindow *control = ev_dscwindow_get_control();
+
+               ev_dscwindow_set_presentation (control, presentation_window);
+               gtk_window_present (GTK_WINDOW (control));
+       } else
+               ev_window_stop_presentation (window);
+
 }
 static void
 ev_window_stop_presentation_wrapper(){