removed unusable
authorvlad <vlad@vlanout.(none)>
Wed, 11 Aug 2010 19:49:14 +0000 (22:49 +0300)
committervlad <vlad@vlanout.(none)>
Wed, 11 Aug 2010 19:49:14 +0000 (22:49 +0300)
xscreensaver/hacks/screenhack.c

index e6f0c41..6366745 100644 (file)
@@ -634,15 +634,10 @@ run_screenhack_table (Display *dpy,
       else
       /* blocking read of the next available message */
        dbus_connection_read_write(conn, 20000);
-        /*fprintf(stderr, "111111\n");*/
-      /*  msg = dbus_connection_borrow_message(conn); */
 
       msg = dbus_connection_pop_message(conn);
 
-        /*fprintf(stderr, "2222222\n");*/
       if (NULL == msg){  
-
-        /*fprintf(stderr, "333333\n");*/
           continue; 
       }
       fprintf(stderr, "signal on view %i\n", view);
@@ -651,7 +646,7 @@ run_screenhack_table (Display *dpy,
           (view == 2 && dbus_message_is_signal(msg, LIVEWP_SIGNAL_INTERFACE, LIVEWP_PAUSE_LIVEBG_ON_VIEW2))||
           (view == 3 && dbus_message_is_signal(msg, LIVEWP_SIGNAL_INTERFACE, LIVEWP_PAUSE_LIVEBG_ON_VIEW3))||
           (view == 4 && dbus_message_is_signal(msg, LIVEWP_SIGNAL_INTERFACE, LIVEWP_PAUSE_LIVEBG_ON_VIEW4))){
-           fprintf(stderr, "Pause scene visible %i\n", view); 
+          /* fprintf(stderr, "Pause scene visible %i\n", view); */ 
           pause = 1;
           dbus_message_unref (msg);
           continue;
@@ -660,7 +655,7 @@ run_screenhack_table (Display *dpy,
           (view == 2 && dbus_message_is_signal(msg, LIVEWP_SIGNAL_INTERFACE, LIVEWP_PLAY_LIVEBG_ON_VIEW2))||
           (view == 3 && dbus_message_is_signal(msg, LIVEWP_SIGNAL_INTERFACE, LIVEWP_PLAY_LIVEBG_ON_VIEW3))||
           (view == 4 && dbus_message_is_signal(msg, LIVEWP_SIGNAL_INTERFACE, LIVEWP_PLAY_LIVEBG_ON_VIEW4))){
-           fprintf(stderr, "Play scene visible %i\n", view); 
+           /* fprintf(stderr, "Play scene visible %i\n", view); */
           pause = 0;
           dbus_message_unref (msg);
           continue;
@@ -698,27 +693,6 @@ run_screenhack_table (Display *dpy,
       }    
 #endif      
       dbus_message_unref (msg);
-      /* check this is a method call for the right interface & method */
-      /*
-      if ((view == 1 && dbus_message_is_signal(msg, LIVEWP_SIGNAL_INTERFACE, LIVEWP_PAUSE_LIVEBG_ON_VIEW1))||
-          (view == 2 && dbus_message_is_signal(msg, LIVEWP_SIGNAL_INTERFACE, LIVEWP_PAUSE_LIVEBG_ON_VIEW2))||
-          (view == 3 && dbus_message_is_signal(msg, LIVEWP_SIGNAL_INTERFACE, LIVEWP_PAUSE_LIVEBG_ON_VIEW3))||
-          (view == 4 && dbus_message_is_signal(msg, LIVEWP_SIGNAL_INTERFACE, LIVEWP_PAUSE_LIVEBG_ON_VIEW4))){
-           fprintf(stderr, "Pause scene visible %i\n", view); 
-          pause = 1;
-          dbus_message_unref (msg); 
-          continue;
-      }
-      if ((view == 1 && dbus_message_is_signal(msg, LIVEWP_SIGNAL_INTERFACE, LIVEWP_PLAY_LIVEBG_ON_VIEW1))||
-          (view == 2 && dbus_message_is_signal(msg, LIVEWP_SIGNAL_INTERFACE, LIVEWP_PLAY_LIVEBG_ON_VIEW2))||
-          (view == 3 && dbus_message_is_signal(msg, LIVEWP_SIGNAL_INTERFACE, LIVEWP_PLAY_LIVEBG_ON_VIEW3))||
-          (view == 4 && dbus_message_is_signal(msg, LIVEWP_SIGNAL_INTERFACE, LIVEWP_PLAY_LIVEBG_ON_VIEW4))){
-           fprintf(stderr, "Play scene visible %i\n", view); 
-          pause = 0;
-          dbus_message_unref (msg); 
-          continue;
-      }
-*/
     }
 
   ft->free_cb (dpy, window, closure);