diff options
author | Michele Calgaro <[email protected]> | 2023-11-23 10:49:13 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-11-23 11:01:41 +0900 |
commit | bf17c1e94003579e5275d8519fe7144c2caeb52c (patch) | |
tree | df2780659ea95d52d294a0a42b096abf6553c5db /klipper/clipboardpoll.cpp | |
parent | 7272c289be1517c4a4b6ccd35c9d64f8a657593d (diff) | |
download | tdebase-bf17c1e94003579e5275d8519fe7144c2caeb52c.tar.gz tdebase-bf17c1e94003579e5275d8519fe7144c2caeb52c.zip |
Replaced time related '#define' with actual strings
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit 81ad1f9e3c9d494edc38a7aad96fdcab9d44a795)
Diffstat (limited to 'klipper/clipboardpoll.cpp')
-rw-r--r-- | klipper/clipboardpoll.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/klipper/clipboardpoll.cpp b/klipper/clipboardpoll.cpp index a4c4b46c5..ff6c50cef 100644 --- a/klipper/clipboardpoll.cpp +++ b/klipper/clipboardpoll.cpp @@ -114,7 +114,7 @@ void ClipboardPoll::initPolling() timer.start( 1000, false ); selection.atom = XA_PRIMARY; clipboard.atom = xa_clipboard; - selection.last_change = clipboard.last_change = GET_QT_X_TIME(); // don't trigger right after startup + selection.last_change = clipboard.last_change = get_tqt_x_time(); // don't trigger right after startup selection.last_owner = XGetSelectionOwner( tqt_xdisplay(), XA_PRIMARY ); #ifdef NOISY_KLIPPER_ kdDebug() << "(1) Setting last_owner for =" << "selection" << ":" << selection.last_owner << endl; @@ -151,7 +151,7 @@ bool ClipboardPoll::x11Event( XEvent* e ) #ifdef NOISY_KLIPPER_ kdDebug() << "SELECTION CHANGED (XFIXES)" << endl; #endif - SET_QT_X_TIME(ev->timestamp); + set_tqt_x_time(ev->timestamp); emit clipboardChanged( true ); } else if( ev->selection == xa_clipboard && !kapp->clipboard()->ownsClipboard()) @@ -159,7 +159,7 @@ bool ClipboardPoll::x11Event( XEvent* e ) #ifdef NOISY_KLIPPER_ kdDebug() << "CLIPBOARD CHANGED (XFIXES)" << endl; #endif - SET_QT_X_TIME(ev->timestamp); + set_tqt_x_time(ev->timestamp); emit clipboardChanged( false ); } } @@ -269,9 +269,9 @@ bool ClipboardPoll::checkTimestamp( SelectionData& data ) return false; } XDeleteProperty( tqt_xdisplay(), winId(), data.timestamp_atom ); - XConvertSelection( tqt_xdisplay(), data.atom, xa_timestamp, data.timestamp_atom, winId(), GET_QT_X_TIME() ); + XConvertSelection( tqt_xdisplay(), data.atom, xa_timestamp, data.timestamp_atom, winId(), get_tqt_x_time() ); data.waiting_for_timestamp = true; - data.waiting_x_time = GET_QT_X_TIME(); + data.waiting_x_time = get_tqt_x_time(); #ifdef REALLY_NOISY_KLIPPER_ kdDebug() << "WAITING TIMESTAMP:" << ( data.atom == XA_PRIMARY ) << endl; #endif |