kdesktopspy: reduce refresh time to half second

works like a charm for ~200 LOC:
https://ibb.co/5GGdGL3

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-03-28 04:15:38 +03:00
parent 03bed80ff8
commit dc4e02dcb2

View file

@ -126,7 +126,7 @@ void KDesktopSpy::handleRequest()
block.append("Server: KDestopSpy\r\n");
QByteArray data;
data.append(QString("<html><img src=\"image.png\" width=\"%1\" height=\"%2\"><meta http-equiv=\"refresh\" content=\"1\"></html>").arg(desktopwidget->width()).arg(desktopwidget->height()).toAscii());
data.append(QString("<html><img src=\"image.png\" width=\"%1\" height=\"%2\"><meta http-equiv=\"refresh\" content=\"0.5\"></html>").arg(desktopwidget->width()).arg(desktopwidget->height()).toAscii());
block.append("Content-Type: text/html; charset=UTF-8\r\n");
block.append(QString("Content-Length: %1\r\n\r\n").arg(data.length()).toAscii());