summaryrefslogtreecommitdiffstats
path: root/video/out/x11_common.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-02-02 01:50:25 +0100
committerwm4 <wm4@nowhere>2014-02-02 01:50:25 +0100
commitb57a0a0bc6e9855d1fa51f0e9fdc5e67adf33612 (patch)
tree070865107cb930d05244820d0318d63ce0ef2549 /video/out/x11_common.c
parentfc04be708c0c2a27907df7e95cdbdb1f3a2ae18d (diff)
downloadmpv-b57a0a0bc6e9855d1fa51f0e9fdc5e67adf33612.tar.bz2
mpv-b57a0a0bc6e9855d1fa51f0e9fdc5e67adf33612.tar.xz
x11: remove apparently useless code
This code essentially does nothing. As far as I could find out, this actually used to do something. Then it was removed with commit efe7c39f, leaving some leftover code that didn't do anything useful. This happened 12 years ago! Also remove a commented debug printf.
Diffstat (limited to 'video/out/x11_common.c')
-rw-r--r--video/out/x11_common.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/video/out/x11_common.c b/video/out/x11_common.c
index 4fb9e40c1e..71ef39a3b0 100644
--- a/video/out/x11_common.c
+++ b/video/out/x11_common.c
@@ -898,7 +898,6 @@ int vo_x11_check_events(struct vo *vo)
vo_x11_update_geometry(vo);
while (XPending(display)) {
XNextEvent(display, &Event);
-// printf("\rEvent.type=%X \n",Event.type);
switch (Event.type) {
case Expose:
x11->pending_vo_events |= VO_EVENT_EXPOSE;
@@ -959,13 +958,6 @@ int vo_x11_check_events(struct vo *vo)
(MP_MOUSE_BTN0 + Event.xbutton.button - 1) |
get_mods(Event.xbutton.state) | MP_KEY_STATE_UP);
break;
- case PropertyNotify: {
- char *name = XGetAtomName(display, Event.xproperty.atom);
- if (!name)
- break;
- XFree(name);
- break;
- }
case MapNotify:
x11->window_hidden = false;
vo_x11_update_geometry(vo);