diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2012-12-09 18:41:52 -0500 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2012-12-17 15:01:28 +1000 |
commit | 2868a93945f043e1efd897d56543fe673e341faf (patch) | |
tree | 8cf60f886abeb655635bfd4a5b4f6cd6ebd8808f | |
parent | 482e0cb35225dc3b0664f9429db19c61b0c98ef6 (diff) |
barriers: Don't loop over the server to destroy a barrier
This is completely pointless as far as I can tell.
Signed-off-by: Jasper St. Pierre <jstpierre@mecheye.net>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | Xi/xibarriers.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/Xi/xibarriers.c b/Xi/xibarriers.c index ba9fd063e..9e43196f6 100644 --- a/Xi/xibarriers.c +++ b/Xi/xibarriers.c @@ -437,22 +437,10 @@ CreatePointerBarrierClient(ClientPtr client, static int BarrierFreeBarrier(void *data, XID id) { - struct PointerBarrierClient *b = NULL, *barrier; - ScreenPtr screen; - BarrierScreenPtr cs; + struct PointerBarrierClient *barrier; barrier = container_of(data, struct PointerBarrierClient, barrier); - - screen = barrier->screen; - cs = GetBarrierScreen(screen); - - /* find and unlink from the screen private */ - xorg_list_for_each_entry(b, &cs->barriers, entry) { - if (b == barrier) { - xorg_list_del(&b->entry); - break; - } - } + xorg_list_del(&barrier->entry); free(barrier); return Success; |