Commit e496e5c3 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Revert "Qt4: make video widget not eat mouse click events"

This reverts commit bd057d1b.
This very old hack is no longer necessary.
parent 6e6297e1
......@@ -140,18 +140,6 @@ WId VideoWidget::request( struct vout_window_t *p_wnd, unsigned int *pi_width,
layout->addWidget( stable );
#ifdef Q_WS_X11
/* HACK: Only one X11 client can subscribe to mouse button press events.
* VLC currently handles those in the video display.
* Force Qt to unsubscribe from mouse press and release events. */
Display *dpy = QX11Info::display();
Window w = stable->winId();
XWindowAttributes attr;
XGetWindowAttributes( dpy, w, &attr );
attr.your_event_mask &= ~(ButtonPressMask|ButtonReleaseMask);
XSelectInput( dpy, w, attr.your_event_mask );
#endif
sync();
p_window = p_wnd;
return stable->winId();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment