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

XCB: try to catch mouse clicks from the owner window

This allows popup menu and fullscreen toggle to work outside of the
video rendering area.
parent 6da55419
......@@ -114,7 +114,12 @@ vout_window_t *GetWindow (vout_display_t *vd,
free (geo);
/* Subscribe to parent window resize events */
const uint32_t value = XCB_EVENT_MASK_STRUCTURE_NOTIFY;
uint32_t value = XCB_EVENT_MASK_STRUCTURE_NOTIFY;
xcb_change_window_attributes (conn, wnd->handle.xid,
XCB_CW_EVENT_MASK, &value);
/* Try to subscribe to click events */
/* (only one X11 client can get them, so might not work) */
value |= XCB_EVENT_MASK_BUTTON_PRESS | XCB_EVENT_MASK_BUTTON_RELEASE;
xcb_change_window_attributes (conn, wnd->handle.xid,
XCB_CW_EVENT_MASK, &value);
}
......
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