Skip to content

Commit a5c6e10

Browse files
committed
revert
1 parent 2f03e4f commit a5c6e10

File tree

1 file changed

+6
-22
lines changed

1 file changed

+6
-22
lines changed

src/autotype/wayland/AutoTypeWayland.cpp

+6-22
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ void AutoTypePlatformWayland::handleCreateSession(uint response, QVariantMap res
7272

7373
QVariantMap selectDevicesOptions{
7474
{"handle_token", selectDevicesRequestHandle},
75-
{"types", QVariant::fromValue(1)},
76-
{"persist_mode", QVariant::fromValue(2)},
75+
{"types", uint(1)},
76+
{"persist_mode", uint(2)},
7777
};
7878

7979
// 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,
127127
AutoTypeAction::Result AutoTypePlatformWayland::sendKey(xkb_keysym_t keysym, QVector<xkb_keysym_t> modifiers)
128128
{
129129
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));
135131
}
136132

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));
142134

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));
148136

149137
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));
155139
}
156140
return AutoTypeAction::Result::Ok();
157141
}

0 commit comments

Comments
 (0)