summaryrefslogtreecommitdiffstats
path: root/src/modules/my
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-12-03 00:35:29 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-12-04 14:27:53 +0900
commit236b93c7266b84269b4be5841d8575b5f3432065 (patch)
tree4e83dba5db2ed3712744b082c95db916807a494c /src/modules/my
parentb32a017aa624eb96fb22ca7458ad74b99d12c3b5 (diff)
downloadkvirc-236b93c7266b84269b4be5841d8575b5f3432065.tar.gz
kvirc-236b93c7266b84269b4be5841d8575b5f3432065.zip
Replaced various '#define' with actual strings - part 5
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/modules/my')
-rw-r--r--src/modules/my/idle_x11.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/my/idle_x11.cpp b/src/modules/my/idle_x11.cpp
index a846a8c3..93440f93 100644
--- a/src/modules/my/idle_x11.cpp
+++ b/src/modules/my/idle_x11.cpp
@@ -80,7 +80,7 @@ bool IdlePlatform::init()
old_handler = XSetErrorHandler(xerrhandler);
int event_base, error_base;
- if(XScreenSaverQueryExtension(TQT_TQPAINTDEVICE(TQApplication::desktop()->screen())->x11Display(), &event_base, &error_base)) {
+ if(XScreenSaverQueryExtension(TQApplication::desktop()->screen()->x11Display(), &event_base, &error_base)) {
d->ss_info = XScreenSaverAllocInfo();
return true;
}
@@ -92,7 +92,7 @@ int IdlePlatform::secondsIdle()
{
if(!d->ss_info)
return 0;
- if(!XScreenSaverQueryInfo(TQT_TQPAINTDEVICE(TQApplication::desktop()->screen())->x11Display(), tqt_xrootwin(), d->ss_info))
+ if(!XScreenSaverQueryInfo(TQApplication::desktop()->screen()->x11Display(), tqt_xrootwin(), d->ss_info))
return 0;
return d->ss_info->idle / 1000;
}