]> git.sesse.net Git - vlc/blobdiff - modules/video_output/ggi.c
Segregate vout window types
[vlc] / modules / video_output / ggi.c
index da70775b9e7961adfd3b01bb0bb0549014bf509a..1270d776dfdef6db1cfb1157a5aaa427427ff2e4 100644 (file)
@@ -293,7 +293,7 @@ static int Manage( vout_thread_t *p_vout )
                     case 'q':
                     case 'Q':
                     case GIIUC_Escape:
-                        vlc_object_kill( p_vout->p_libvlc );
+                        libvlc_Quit( p_vout->p_libvlc );
                         break;
 
                     default:
@@ -306,12 +306,11 @@ static int Manage( vout_thread_t *p_vout )
                 switch( event.pbutton.button )
                 {
                     case GII_PBUTTON_LEFT:
-                        val.b_bool = true;
-                        var_Set( p_vout, "mouse-clicked", val );
+                        var_SetBool( p_vout, "mouse-clicked", true );
                         break;
 
                     case GII_PBUTTON_RIGHT:
-                        /* trigger contextual menu here */
+                        var_SetBool( p_vout->p_libvlc, "intf-popupmenu", true );
                         break;
                 }
                 break;