summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Edmundson <davidedmundson@kde.org>2023-07-10 22:24:28 +0100
committerDavid Edmundson <davidedmundson@kde.org>2023-09-09 13:28:04 +0100
commit89bda3469e434926eff55ead770a83766accf732 (patch)
treef5d2ab259f32d0ab1aad63bfaa1e27783fb1128d /src
parent38f5679d57c7b05753ac1ab27d94b60dc10a340a (diff)
client: Port QWaylandInputDevice to support QT_NO_CONTEXTLESS_CONNECT
There were two existing usages of the 3-arg connect, but the timer is always scoped to be shorter than the receiver so it was previously safe. Change-Id: I0bb5a38fed997cbb68e49defc51972894f5239ee Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/client/qwaylandinputdevice.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/qwaylandinputdevice.cpp b/src/client/qwaylandinputdevice.cpp
index dc59a2376..c46299057 100644
--- a/src/client/qwaylandinputdevice.cpp
+++ b/src/client/qwaylandinputdevice.cpp
@@ -64,7 +64,7 @@ QWaylandInputDevice::Keyboard::Keyboard(QWaylandInputDevice *p)
: mParent(p)
{
init(p->get_keyboard());
- mRepeatTimer.callOnTimeout([&]() {
+ mRepeatTimer.callOnTimeout(this, [&]() {
if (!focusWindow()) {
// We destroyed the keyboard focus surface, but the server didn't get the message yet...
// or the server didn't send an enter event first.
@@ -132,7 +132,7 @@ QWaylandInputDevice::Pointer::Pointer(QWaylandInputDevice *seat)
}
mCursor.frameTimer.setSingleShot(true);
- mCursor.frameTimer.callOnTimeout([&]() {
+ mCursor.frameTimer.callOnTimeout(this, [&]() {
cursorTimerCallback();
});
#endif