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.
This commit is contained in:
wm4 2014-02-02 01:50:25 +01:00
parent fc04be708c
commit b57a0a0bc6
1 changed files with 0 additions and 8 deletions

View File

@ -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);