summaryrefslogtreecommitdiffstats
path: root/video/out/x11_common.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-01-27 06:33:58 +0100
committerwm4 <wm4@nowhere>2013-01-27 13:30:54 +0100
commite4943165c1f1365a5c2d7b0d6924a8f65454ce20 (patch)
treecb23aaa32607541c7fa59f090f5153827afb103f /video/out/x11_common.h
parenta243acb1deccd9526f3867d9a6500743dc190f95 (diff)
downloadmpv-e4943165c1f1365a5c2d7b0d6924a8f65454ce20.tar.bz2
mpv-e4943165c1f1365a5c2d7b0d6924a8f65454ce20.tar.xz
x11_common: do not set custom error handler when calling XSelectInput
Do this because we want to remove the global variables required with the old code. In particular, there doesn't seem any way to set a secure user data pointer with xlib. XSelectInput() causes a BadAccess error when some of the requested event flags are reserved (for exclusive flags like ButtonPress). The custom error handler caught this and set a global variable, so that the code could retry the XSelectInput() call without the conflicting flags. Use a different approach that doesn't need a custom error handler. (Although we still assume that the error handler doesn't terminate the program.)
Diffstat (limited to 'video/out/x11_common.h')
0 files changed, 0 insertions, 0 deletions