[client,X11] X11 locking log with WITH_DEBUG_X11

This commit is contained in:
Armin Novak 2024-07-17 11:31:30 +02:00
parent 1b2533674b
commit 2ac05d4d4a
No known key found for this signature in database
GPG Key ID: 2CF4A2D2D3D72105
1 changed files with 5 additions and 0 deletions

View File

@ -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