From 27014df3669c1c2fcf3390c46c8d82c10ff28244 Mon Sep 17 00:00:00 2001 From: "Yunhyeok \"Yune\" Choi" <1113706-twitt-thornwaite@users.noreply.gitlab.freedesktop.org> Date: Sun, 25 Aug 2024 12:53:29 +0000 Subject: [PATCH] glx: Getting rid of the double assignment in `__glXWireToEvent`. Previously the field `event_type` in `GLXPbufferClobberEvent` was assigned twice in succession with different values. Removing the first assignment and retaining only the second one. Part-of: --- src/glx/glxext.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/glx/glxext.c b/src/glx/glxext.c index 216d19926b1..6bfa83d7876 100644 --- a/src/glx/glxext.c +++ b/src/glx/glxext.c @@ -140,9 +140,8 @@ __glXWireToEvent(Display *dpy, XEvent *event, xEvent *wire) { GLXPbufferClobberEvent *aevent = (GLXPbufferClobberEvent *)event; xGLXPbufferClobberEvent *awire = (xGLXPbufferClobberEvent *)wire; - aevent->event_type = awire->type; - aevent->serial = awire->sequenceNumber; aevent->event_type = awire->event_type; + aevent->serial = awire->sequenceNumber; aevent->draw_type = awire->draw_type; aevent->drawable = awire->drawable; aevent->buffer_mask = awire->buffer_mask;