Changeset 4a0090f442f99e1c76cd69ac1a30d0740535e8a3

Show
Ignore:
Timestamp:
13/08/07 16:45:16 (1 year ago)
Author:
Rafaël Carré <funman@videolan.org>
git-committer:
Rafaël Carré <funman@videolan.org> 1187016316 +0000
git-parent:

[a8fbff2437f6aecee3b0be4a1d7252cf27afd86c]

git-author:
Rafaël Carré <funman@videolan.org> 1187016316 +0000
Message:

Updates window title even in fullscreen - patch by Aurélien Jacobs

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/video_output/x11/xcommon.c

    ra60436b r4a0090f  
    16201620                           &xwindow_attributes ); 
    16211621 
     1622        var_Get( p_vout, "video-title", &val ); 
     1623        if( !val.psz_string || !*val.psz_string ) 
     1624        { 
     1625            XStoreName( p_vout->p_sys->p_display, p_win->base_window, 
     1626#ifdef MODULE_NAME_IS_x11 
     1627                        VOUT_TITLE " (X11 output)" 
     1628#elif defined(MODULE_NAME_IS_glx) 
     1629                        VOUT_TITLE " (GLX output)" 
     1630#else 
     1631                        VOUT_TITLE " (XVideo output)" 
     1632#endif 
     1633              ); 
     1634        } 
     1635        else 
     1636        { 
     1637            XStoreName( p_vout->p_sys->p_display, 
     1638                        p_win->base_window, val.psz_string ); 
     1639        } 
     1640        if( val.psz_string ) free( val.psz_string ); 
     1641 
    16221642        if( !p_vout->b_fullscreen ) 
    16231643        { 
     
    16451665                                 (unsigned char *)&mwmhints, 
    16461666                                 PROP_MWM_HINTS_ELEMENTS ); 
    1647             } 
    1648             else 
    1649             { 
    1650                  var_Get( p_vout, "video-title", &val ); 
    1651                  if( !val.psz_string || !*val.psz_string ) 
    1652                  { 
    1653                     XStoreName( p_vout->p_sys->p_display, p_win->base_window, 
    1654 #ifdef MODULE_NAME_IS_x11 
    1655                                 VOUT_TITLE " (X11 output)" 
    1656 #elif defined(MODULE_NAME_IS_glx) 
    1657                                 VOUT_TITLE " (GLX output)" 
    1658 #else 
    1659                                 VOUT_TITLE " (XVideo output)" 
    1660 #endif 
    1661                       ); 
    1662                 } 
    1663                 else 
    1664                 { 
    1665                     XStoreName( p_vout->p_sys->p_display, 
    1666                                p_win->base_window, val.psz_string ); 
    1667                 } 
    1668                 if( val.psz_string ) free( val.psz_string ); 
    16691667            } 
    16701668        }