Mercurial > mplayer.hg
comparison libvo/x11_common.c @ 31535:749835ce19dc
Do not try to grab input from -wid windows, it will most likely break
their input processing.
If someone needs the previous behaviour, an option could be added
(and also used in the w32_common.c code).
author | reimar |
---|---|
date | Thu, 01 Jul 2010 19:48:00 +0000 |
parents | c3e536cf595b |
children | 96d04730232f |
comparison
equal
deleted
inserted
replaced
31534:a12dc8956533 | 31535:749835ce19dc |
---|---|
1081 xswa.colormap = col_map; | 1081 xswa.colormap = col_map; |
1082 XChangeWindowAttributes(mDisplay, vo_window, xswamask, &xswa); | 1082 XChangeWindowAttributes(mDisplay, vo_window, xswamask, &xswa); |
1083 XInstallColormap(mDisplay, col_map); | 1083 XInstallColormap(mDisplay, col_map); |
1084 } | 1084 } |
1085 if (WinID) vo_x11_update_geometry(); | 1085 if (WinID) vo_x11_update_geometry(); |
1086 else | |
1087 // Do not capture events since it might break the parent application | |
1088 // if it relies on events being forwarded to the parent of WinID. | |
1089 // It also is consistent with the w32_common.c code. | |
1086 vo_x11_selectinput_witherr(mDisplay, vo_window, | 1090 vo_x11_selectinput_witherr(mDisplay, vo_window, |
1087 StructureNotifyMask | KeyPressMask | PointerMotionMask | | 1091 StructureNotifyMask | KeyPressMask | PointerMotionMask | |
1088 ButtonPressMask | ButtonReleaseMask | ExposureMask); | 1092 ButtonPressMask | ButtonReleaseMask | ExposureMask); |
1089 goto final; | 1093 goto final; |
1090 } | 1094 } |