Skip to content

Commit

Permalink
vro
Browse files Browse the repository at this point in the history
  • Loading branch information
ikalco committed Jul 29, 2024
1 parent 71c566d commit 1322aac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/protocols/TextInputV1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,15 @@ CTextInputV1::CTextInputV1(SP<CZwpTextInputV1> resource_) : resource(resource_)
pendingContentType.isPending = false;
});

resource->setSetSurroundingText([this](CZwpTextInputV1* pMgr, const char* text, uint32_t cursor, uint32_t anchor) {
pendingSurrounding = {true, std::string(text), cursor, anchor};
;
});
resource->setSetSurroundingText(
[this](CZwpTextInputV1* pMgr, const char* text, uint32_t cursor, uint32_t anchor) { pendingSurrounding = {true, std::string(text), cursor, anchor}; });

resource->setSetContentType([this](CZwpTextInputV1* pMgr, uint32_t hint, uint32_t purpose) {
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};
});

resource->setSetCursorRectangle([this](CZwpTextInputV1* pMgr, int32_t x, int32_t y, int32_t width, int32_t height) {
cursorRectangle = CBox{x, y, width, height};
;
});
resource->setSetCursorRectangle([this](CZwpTextInputV1* pMgr, int32_t x, int32_t y, int32_t width, int32_t height) { cursorRectangle = CBox{x, y, width, height}; });

resource->setCommitState([this](CZwpTextInputV1* pMgr, uint32_t serial_) {
serial = serial_;
Expand Down
1 change: 1 addition & 0 deletions src/protocols/VirtualPointer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "wlr-virtual-pointer-unstable-v1.hpp"
#include "../helpers/signal/Signal.hpp"
#include "../devices/IPointer.hpp"
#include "../helpers/Monitor.hpp"

class CVirtualPointerV1Resource {
public:
Expand Down

0 comments on commit 1322aac

Please sign in to comment.