This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project gfxprim.git.
The branch, master has been updated via 378721e46cdafc7ba99e30f51b8b8395fb254de0 (commit) from 5d9d976eb5371267bad2e285f6de5f02712ce86b (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- http://repo.or.cz/w/gfxprim.git/commit/378721e46cdafc7ba99e30f51b8b8395fb254...
commit 378721e46cdafc7ba99e30f51b8b8395fb254de0 Author: Cyril Hrubis metan@ucw.cz Date: Mon Nov 11 22:54:02 2013 +0100
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
diff --git a/libs/backends/GP_X11.c b/libs/backends/GP_X11.c index 8505edc..3379dd0 100644 --- a/libs/backends/GP_X11.c +++ b/libs/backends/GP_X11.c @@ -167,7 +167,7 @@ static void x11_ev(XEvent *ev) default: //TODO: More accurate window w and h? GP_InputDriverX11EventPut(&self->event_queue, ev, - win->context.w, win->context.h); + self->context->w, self->context->h); break; } } @@ -480,7 +480,6 @@ static int create_ximage(GP_Backend *self, GP_Size w, GP_Size h) }
win->shm_flag = 0; - win->img->data = (char*)self->context->pixels;
return 0;
-----------------------------------------------------------------------
Summary of changes: libs/backends/GP_X11.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos@gmail.com if you want to unsubscribe, or site admin admin@repo.or.cz if you receive no reply.