summaryrefslogtreecommitdiffstats
path: root/twin/events.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-23 10:49:13 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-23 10:49:13 +0900
commit81ad1f9e3c9d494edc38a7aad96fdcab9d44a795 (patch)
treec904c597ffd00ee1105985088f3d98c818cc12d1 /twin/events.cpp
parent100f977221b7319815eb9617f56a067cb0383853 (diff)
downloadtdebase-81ad1f9e3c9d494edc38a7aad96fdcab9d44a795.tar.gz
tdebase-81ad1f9e3c9d494edc38a7aad96fdcab9d44a795.zip
Replaced time related '#define' with actual strings
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'twin/events.cpp')
-rw-r--r--twin/events.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/twin/events.cpp b/twin/events.cpp
index a56cc9ddd..8660f8776 100644
--- a/twin/events.cpp
+++ b/twin/events.cpp
@@ -197,7 +197,7 @@ bool Workspace::workspaceEvent( XEvent * e )
if ( mouse_emulation && (e->type == ButtonPress || e->type == ButtonRelease ) )
{
mouse_emulation = FALSE;
- XUngrabKeyboard( tqt_xdisplay(), GET_QT_X_TIME() );
+ XUngrabKeyboard( tqt_xdisplay(), get_tqt_x_time() );
}
if( e->type == PropertyNotify || e->type == ClientMessage )
@@ -292,11 +292,11 @@ bool Workspace::workspaceEvent( XEvent * e )
!e->xcreatewindow.override_redirect )
{
// see comments for allowClientActivation()
- Time my_qtx_time = GET_QT_X_TIME();
+ Time my_qtx_time = get_tqt_x_time();
XChangeProperty(tqt_xdisplay(), e->xcreatewindow.window,
atoms->kde_net_wm_user_creation_time, XA_CARDINAL,
32, PropModeReplace, (unsigned char *)&my_qtx_time, 1);
- SET_QT_X_TIME(my_qtx_time);
+ set_tqt_x_time(my_qtx_time);
}
break;
@@ -1550,7 +1550,7 @@ static bool waitingMotionEvent()
// of processes events reaches the timestamp of the last suitable
// MotionNotify event in the queue.
if( next_motion_time != CurrentTime
- && timestampCompare( GET_QT_X_TIME(), next_motion_time ) < 0 )
+ && timestampCompare( get_tqt_x_time(), next_motion_time ) < 0 )
return true;
was_motion = false;
XSync( tqt_xdisplay(), False ); // this helps to discard more MotionNotify events