Changeset 604bcea0bce2d1560b1170608cc25fff3bfa49c7
- Timestamp:
- 27/10/06 18:26:55
(2 years ago)
- Author:
- Rafaël Carré <funman@videolan.org>
- git-committer:
- Rafaël Carré <funman@videolan.org> 1161966415 +0000
- git-parent:
[fe029daeaf84de77c28dd59e9818a3398bb06c12]
- git-author:
- Rafaël Carré <funman@videolan.org> 1161966415 +0000
- Message:
Enables "stay on top" with window managers that don't handle _NET_WM_STATE_STAYS_ON_TOP
That atom is not defined at http://www.freedesktop.org/wiki/Standards_2fwm_2dspec, and is not used by metacity, or xfwm4 for example
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r3f8b630 |
r604bcea |
|
| 3062 | 3062 | } |
|---|
| 3063 | 3063 | |
|---|
| | 3064 | /* use _NET_WM_STATE_ABOVE if window manager |
|---|
| | 3065 | * doesn't handle _NET_WM_STATE_STAYS_ON_TOP */ |
|---|
| | 3066 | else if( p_vout->p_sys->b_net_wm_state_above ) |
|---|
| | 3067 | { |
|---|
| | 3068 | XClientMessageEvent event; |
|---|
| | 3069 | |
|---|
| | 3070 | memset( &event, 0, sizeof( XClientMessageEvent ) ); |
|---|
| | 3071 | |
|---|
| | 3072 | event.type = ClientMessage; |
|---|
| | 3073 | event.message_type = p_vout->p_sys->net_wm_state; |
|---|
| | 3074 | event.display = p_vout->p_sys->p_display; |
|---|
| | 3075 | event.window = p_vout->p_sys->p_win->base_window; |
|---|
| | 3076 | event.format = 32; |
|---|
| | 3077 | event.data.l[ 0 ] = b_on_top; /* set property */ |
|---|
| | 3078 | event.data.l[ 1 ] = p_vout->p_sys->net_wm_state_above; |
|---|
| | 3079 | |
|---|
| | 3080 | XSendEvent( p_vout->p_sys->p_display, |
|---|
| | 3081 | DefaultRootWindow( p_vout->p_sys->p_display ), |
|---|
| | 3082 | False, SubstructureRedirectMask, |
|---|
| | 3083 | (XEvent*)&event ); |
|---|
| | 3084 | } |
|---|
| | 3085 | |
|---|
| 3064 | 3086 | return VLC_SUCCESS; |
|---|
| 3065 | 3087 | } |
|---|