diff options
author | vaxerski <[email protected]> | 2023-03-13 21:18:36 +0000 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-03-13 21:18:36 +0000 |
commit | fafc743677005092c2a1ed18b9f968b90325d926 (patch) | |
tree | 92068b313e3ac66caf3b5256a5b67ec973515a46 | |
parent | a131212ec14cd525828076f054896ea874811801 (diff) | |
download | Hyprland-textInputV1.tar.gz Hyprland-textInputV1.zip |
fix warmtextInputV1
-rw-r--r-- | src/protocols/TextInputV1.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/protocols/TextInputV1.cpp b/src/protocols/TextInputV1.cpp index fa2dda59..f50f3298 100644 --- a/src/protocols/TextInputV1.cpp +++ b/src/protocols/TextInputV1.cpp @@ -192,8 +192,8 @@ void CTextInputV1ProtocolManager::handleSetSurroundingText(wl_client* client, wl void CTextInputV1ProtocolManager::handleSetContentType(wl_client* client, wl_resource* resource, uint32_t hint, uint32_t purpose) { const auto PTI = tiFromResource(resource); - PTI->pendingContentType = {true, hint == ZWP_TEXT_INPUT_V1_CONTENT_HINT_DEFAULT ? ZWP_TEXT_INPUT_V1_CONTENT_HINT_NONE : hint, - purpose > ZWP_TEXT_INPUT_V1_CONTENT_PURPOSE_PASSWORD ? hint + 1 : hint}; + PTI->pendingContentType = {true, hint == (uint32_t)ZWP_TEXT_INPUT_V1_CONTENT_HINT_DEFAULT ? (uint32_t)ZWP_TEXT_INPUT_V1_CONTENT_HINT_NONE : hint, + purpose > (uint32_t)ZWP_TEXT_INPUT_V1_CONTENT_PURPOSE_PASSWORD ? hint + 1 : hint}; } void CTextInputV1ProtocolManager::handleSetCursorRectangle(wl_client* client, wl_resource* resource, int32_t x, int32_t y, int32_t width, int32_t height) { |