Changeset 4a0090f442f99e1c76cd69ac1a30d0740535e8a3
- 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
| ra60436b |
r4a0090f |
|
| 1620 | 1620 | &xwindow_attributes ); |
|---|
| 1621 | 1621 | |
|---|
| | 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 | |
|---|
| 1622 | 1642 | if( !p_vout->b_fullscreen ) |
|---|
| 1623 | 1643 | { |
|---|
| … | … | |
| 1645 | 1665 | (unsigned char *)&mwmhints, |
|---|
| 1646 | 1666 | 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 ); |
|---|
| 1669 | 1667 | } |
|---|
| 1670 | 1668 | } |
|---|