mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[client,X11] X11 locking log with WITH_DEBUG_X11
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user