From 2ac05d4d4aa25ec9f569d6529ce425d385f4ea43 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Wed, 17 Jul 2024 11:31:30 +0200 Subject: [PATCH] [client,X11] X11 locking log with WITH_DEBUG_X11 --- client/X11/xf_client.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/X11/xf_client.c b/client/X11/xf_client.c index ed445834b..1f944d037 100644 --- a/client/X11/xf_client.c +++ b/client/X11/xf_client.c @@ -785,7 +785,9 @@ void xf_lock_x11_(xfContext* xfc, const char* fkt) XLockDisplay(xfc->display); xfc->locked++; +#ifdef WITH_DEBUG_X11 WLog_VRB(TAG, "[%" PRIu32 "] from %s", xfc->locked, fkt); +#endif } void xf_unlock_x11_(xfContext* xfc, const char* fkt) @@ -793,7 +795,10 @@ void xf_unlock_x11_(xfContext* xfc, const char* fkt) if (xfc->locked == 0) WLog_WARN(TAG, "X11: trying to unlock although not locked!"); +#ifdef WITH_DEBUG_X11 WLog_VRB(TAG, "[%" PRIu32 "] from %s", xfc->locked - 1, fkt); +#endif + if (!xfc->UseXThreads) ReleaseMutex(xfc->mutex); else