summaryrefslogtreecommitdiffstats
path: root/libvo/vo_xmga.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-24 23:15:17 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-24 23:15:17 +0000
commitaa06c562ff1d1f8280a59d7003779f3fbfb96b83 (patch)
tree511a06b94f5e90437d65ca9c9f041786eb61227a /libvo/vo_xmga.c
parente08139aebae1060e35783748967a72dd01b27850 (diff)
downloadmpv-aa06c562ff1d1f8280a59d7003779f3fbfb96b83.tar.bz2
mpv-aa06c562ff1d1f8280a59d7003779f3fbfb96b83.tar.xz
-rootwin fix...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5824 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_xmga.c')
-rw-r--r--libvo/vo_xmga.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libvo/vo_xmga.c b/libvo/vo_xmga.c
index 28e8efee5f..00c9eba3c2 100644
--- a/libvo/vo_xmga.c
+++ b/libvo/vo_xmga.c
@@ -278,7 +278,8 @@ static uint32_t config( uint32_t width, uint32_t height, uint32_t d_width, uint3
xWAttribs.colormap=XCreateColormap( mDisplay,RootWindow( mDisplay,mScreen ),vinfo.visual,AllocNone );
xWAttribs.background_pixel=0;
xWAttribs.border_pixel=0;
- xWAttribs.event_mask=StructureNotifyMask | ExposureMask | KeyPressMask | ButtonPressMask | ButtonReleaseMask | PointerMotionMask;
+ xWAttribs.event_mask=StructureNotifyMask | ExposureMask | KeyPressMask |
+ ((WinID==0)?0:(ButtonPressMask | ButtonReleaseMask | PointerMotionMask));
xswamask=CWBackPixel | CWBorderPixel | CWColormap | CWEventMask;
if ( WinID>=0 ){