backends: X11: Fix window size passed to event parser.
commit378721e46cdafc7ba99e30f51b8b8395fb254de0
authorCyril Hrubis <metan@ucw.cz>
Mon, 11 Nov 2013 21:54:02 +0000 (11 22:54 +0100)
committerCyril Hrubis <metan@ucw.cz>
Mon, 11 Nov 2013 21:54:02 +0000 (11 22:54 +0100)
tree1977270e99845e14663bdac77139a762e93c3711
parent5d9d976eb5371267bad2e285f6de5f02712ce86b
backends: X11: Fix window size passed to event parser.

When SHM is not in use, the win->context field is not used to construct
the backend context and the width and height fields are uninitialized
which leads to wrong (or none) events from mouse pointer movement.

Fix this by using self->context which is correct in all cases.

Signed-off-by: Cyril Hrubis <metan@ucw.cz>
libs/backends/GP_X11.c