protocols: move text-input-v1 to hyprwayland-scanner (#7096)

* move text-input-v1 to hyprwayland-scanner

* vro
This commit is contained in:
Ikalco
2024-07-29 11:14:19 -05:00
committed by GitHub
parent 01560c9d7c
commit 60b663e276
11 changed files with 196 additions and 314 deletions

View File

@@ -8,7 +8,7 @@
struct wl_client;
struct STextInputV1;
class CTextInputV1;
class CTextInputV3;
class CInputMethodV2;
class CWLSurfaceResource;
@@ -16,8 +16,7 @@ class CWLSurfaceResource;
class CTextInput {
public:
CTextInput(WP<CTextInputV3> ti);
CTextInput(STextInputV1* ti);
~CTextInput();
CTextInput(WP<CTextInputV1> ti);
bool isV3();
void enter(SP<CWLSurfaceResource> pSurface);
@@ -43,12 +42,7 @@ class CTextInput {
WP<CWLSurfaceResource> pFocusedSurface;
int enterLocks = 0;
WP<CTextInputV3> pV3Input;
STextInputV1* pV1Input = nullptr;
DYNLISTENER(textInputEnable);
DYNLISTENER(textInputDisable);
DYNLISTENER(textInputCommit);
DYNLISTENER(textInputDestroy);
WP<CTextInputV1> pV1Input;
struct {
CHyprSignalListener enable;
@@ -58,4 +52,4 @@ class CTextInput {
CHyprSignalListener surfaceUnmap;
CHyprSignalListener surfaceDestroy;
} listeners;
};
};