vlc_linux/vlc-3.0.16/modules/gui/qt/components/controller.cpp
/**
 * On mouse move
 * moving with FSC
 */
On mouse move
moving with FSC
On mouse move moving with FSC
void FullscreenControllerWidget::mouseMoveEvent( QMouseEvent *event )
{
    if( event->buttons() == Qt::LeftButton )
    {
        if( i_mouse_last_x == -1 || i_mouse_last_y == -1 )
            return;
        int i_moveX = event->globalX() - i_mouse_last_x;
        int i_moveY = event->globalY() - i_mouse_last_y;
        move( x() + i_moveX, y() + i_moveY );
        i_mouse_last_x = event->globalX();
        i_mouse_last_y = event->globalY();
    }
}
void FullscreenControllerWidget :: mouseMoveEvent ( QMouseEvent * event ) { if ( event -> buttons ( ) == Qt :: LeftButton ) { if ( i_mouse_last_x == -1 || i_mouse_last_y == -1 ) return ; int i_moveX = event -> globalX ( ) - i_mouse_last_x ; int i_moveY = event -> globalY ( ) - i_mouse_last_y ; move ( x ( ) + i_moveX , y ( ) + i_moveY ) ; i_mouse_last_x = event -> globalX ( ) ; i_mouse_last_y = event -> globalY ( ) ; } }
On mouse move
 moving with FSC
On mouse move moving with FSC