feat: Add debug logging to hgx11damage.cpp

Added qDebug() statements to trace the execution flow and print out important values in the damage monitoring thread.
This will help to identify if X11 damage events are being received.
This commit is contained in:
Tobias J. Endres 2025-08-14 01:25:50 +02:00
parent 9eda38519e
commit 8ff291c4b4

View File

@ -29,8 +29,10 @@ void hgx11damage::_monitor()
if(_display_p == nullptr){ if(_display_p == nullptr){
return; return;
} }
qDebug() << "Monitoring for X11 damage events.";
while (_loop_m) { while (_loop_m) {
XNextEvent(_display_p, &_event_m); XNextEvent(_display_p, &_event_m);
qDebug() << "X11 event received:" << _event_m.type;
if (_frameCount_m++ < _frameSkip_m) { if (_frameCount_m++ < _frameSkip_m) {
XDamageSubtract(_display_p ,_damage_m, None, None); XDamageSubtract(_display_p ,_damage_m, None, None);
continue; continue;