summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-02-02 01:50:25 +0100
committerwm4 <wm4@nowhere>2014-02-12 22:30:34 +0100
commit801feb642055234a2953237c0a8595fd41fc6d10 (patch)
tree55a3df9005432134bcd3451e4702e0b031792743 /video
parentde6a452039262fdd2700a6319346db744565f8e6 (diff)
downloadmpv-801feb642055234a2953237c0a8595fd41fc6d10.tar.bz2
mpv-801feb642055234a2953237c0a8595fd41fc6d10.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')
-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 2c29242af6..378ccbc508 100644
--- a/video/out/x11_common.c
+++ b/video/out/x11_common.c
@@ -757,7 +757,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;
@@ -818,13 +817,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);