@@ -72,8 +72,8 @@ void AutoTypePlatformWayland::handleCreateSession(uint response, QVariantMap res
72
72
73
73
QVariantMap selectDevicesOptions{
74
74
{" handle_token" , selectDevicesRequestHandle},
75
- {" types" , QVariant::fromValue (1 )},
76
- {" persist_mode" , QVariant::fromValue (2 )},
75
+ {" types" , uint (1 )},
76
+ {" persist_mode" , uint (2 )},
77
77
};
78
78
79
79
// TODO: Store restore token in database/some other persistent data so the dialog doesn't appear every launch
@@ -127,31 +127,15 @@ void AutoTypePlatformWayland::portalResponse(uint response, QVariantMap results,
127
127
AutoTypeAction::Result AutoTypePlatformWayland::sendKey (xkb_keysym_t keysym, QVector<xkb_keysym_t > modifiers)
128
128
{
129
129
for (auto modifier : modifiers) {
130
- m_remote_desktop.call (" NotifyKeyboardKeysym" ,
131
- QVariant::fromValue (m_session_handle),
132
- QVariantMap (),
133
- QVariant::fromValue (modifier),
134
- QVariant::fromValue (1 ));
130
+ m_remote_desktop.call (" NotifyKeyboardKeysym" , QVariant::fromValue (m_session_handle), QVariantMap (), int (modifier), uint (1 ));
135
131
}
136
132
137
- m_remote_desktop.call (" NotifyKeyboardKeysym" ,
138
- QVariant::fromValue (m_session_handle),
139
- QVariantMap (),
140
- QVariant::fromValue (keysym),
141
- QVariant::fromValue (1 ));
133
+ m_remote_desktop.call (" NotifyKeyboardKeysym" , QVariant::fromValue (m_session_handle), QVariantMap (), int (keysym), uint (1 ));
142
134
143
- m_remote_desktop.call (" NotifyKeyboardKeysym" ,
144
- QVariant::fromValue (m_session_handle),
145
- QVariantMap (),
146
- QVariant::fromValue (keysym),
147
- QVariant::fromValue (0 ));
135
+ m_remote_desktop.call (" NotifyKeyboardKeysym" , QVariant::fromValue (m_session_handle), QVariantMap (), int (keysym), uint (0 ));
148
136
149
137
for (auto modifier : modifiers) {
150
- m_remote_desktop.call (" NotifyKeyboardKeysym" ,
151
- QVariant::fromValue (m_session_handle),
152
- QVariantMap (),
153
- QVariant::fromValue (modifier),
154
- QVariant::fromValue (0 ));
138
+ m_remote_desktop.call (" NotifyKeyboardKeysym" , QVariant::fromValue (m_session_handle), QVariantMap (), int (modifier), uint (0 ));
155
139
}
156
140
return AutoTypeAction::Result::Ok ();
157
141
}
0 commit comments