summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-06-26 20:24:05 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-06-27 07:40:48 +0100
commitf027b4f628b6d0f4c00f8aba7b27dcf51f91211d (patch)
tree88f97dfe01d7850af6cac2a8f67feb6f2ab48797
parent2ae5d7d9415a77c76078bc340066df73dce72d27 (diff)
sna/dri2: Slightly improved DBG messages
Missing git add from commit 2e8c09f3fe468abba9c307ba3d7b2d22908e1172 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Wed Jun 25 22:19:23 2014 +0100 sna/dri2: Hook into ClientGone callback to clear dangling references Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_dri2.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/sna/sna_dri2.c b/src/sna/sna_dri2.c
index f24086ae..c6327eec 100644
--- a/src/sna/sna_dri2.c
+++ b/src/sna/sna_dri2.c
@@ -1199,8 +1199,8 @@ sna_dri2_remove_event(WindowPtr win, struct sna_dri2_event *info)
struct sna_dri2_event *chain;
assert(win->drawable.type == DRAWABLE_WINDOW);
- DBG(("%s: remove[%p] from window %ld)\n",
- __FUNCTION__, info, (long)win->drawable.id));
+ DBG(("%s: remove[%p] from window %ld, active? %d\n",
+ __FUNCTION__, info, (long)win->drawable.id, info->darw != NULL));
priv = dri2_window(win);
assert(priv);
@@ -1267,7 +1267,8 @@ sna_dri2_client_gone(CallbackListPtr *list, void *closure, void *data)
if (client->clientState != ClientStateGone)
return;
- DBG(("%s()\n", __FUNCTION__));
+ DBG(("%s(active?=%d)\n", __FUNCTION__
+ !list_is_empty(&priv->events)));
while (!list_is_empty(&priv->events)) {
struct sna_dri2_event *event;