summaryrefslogtreecommitdiff
path: root/src/protocols/TextInputV1.hpp
diff options
context:
space:
mode:
authorIkalco <73481042+ikalco@users.noreply.github.com>2024-07-24 12:07:36 -0500
committerGitHub <noreply@github.com>2024-07-24 19:07:36 +0200
commit3e543d2ce8ba64abb4d226dbb88c4513474501cf (patch)
treed340935c65520e293a73623c148219993e38779b /src/protocols/TextInputV1.hpp
parent735e3c6c56d22059ee6340c0327e4b5a9154f013 (diff)
core: Properly shutdown wl display (#7018)
* correctly destroy wayland globals * properly shutdown and cleanup hyprland * appease the nitpick gods and some comments
Diffstat (limited to 'src/protocols/TextInputV1.hpp')
-rw-r--r--src/protocols/TextInputV1.hpp28
1 files changed, 15 insertions, 13 deletions
diff --git a/src/protocols/TextInputV1.hpp b/src/protocols/TextInputV1.hpp
index 0a1203f0..e56a8990 100644
--- a/src/protocols/TextInputV1.hpp
+++ b/src/protocols/TextInputV1.hpp
@@ -47,6 +47,7 @@ struct STextInputV1 {
class CTextInputV1ProtocolManager {
public:
CTextInputV1ProtocolManager();
+ ~CTextInputV1ProtocolManager();
void bindManager(wl_client* client, void* data, uint32_t version, uint32_t id);
void createTI(wl_client* client, wl_resource* resource, uint32_t id);
@@ -55,21 +56,22 @@ class CTextInputV1ProtocolManager {
void displayDestroy();
// handlers for tiv1
- void handleActivate(wl_client* client, wl_resource* resource, wl_resource* seat, wl_resource* surface);
- void handleDeactivate(wl_client* client, wl_resource* resource, wl_resource* seat);
- void handleShowInputPanel(wl_client* client, wl_resource* resource);
- void handleHideInputPanel(wl_client* client, wl_resource* resource);
- void handleReset(wl_client* client, wl_resource* resource);
- void handleSetSurroundingText(wl_client* client, wl_resource* resource, const char* text, uint32_t cursor, uint32_t anchor);
- void handleSetContentType(wl_client* client, wl_resource* resource, uint32_t hint, uint32_t purpose);
- void handleSetCursorRectangle(wl_client* client, wl_resource* resource, int32_t x, int32_t y, int32_t width, int32_t height);
- void handleSetPreferredLanguage(wl_client* client, wl_resource* resource, const char* language);
- void handleCommitState(wl_client* client, wl_resource* resource, uint32_t serial);
- void handleInvokeAction(wl_client* client, wl_resource* resource, uint32_t button, uint32_t index);
+ void handleActivate(wl_client* client, wl_resource* resource, wl_resource* seat, wl_resource* surface);
+ void handleDeactivate(wl_client* client, wl_resource* resource, wl_resource* seat);
+ void handleShowInputPanel(wl_client* client, wl_resource* resource);
+ void handleHideInputPanel(wl_client* client, wl_resource* resource);
+ void handleReset(wl_client* client, wl_resource* resource);
+ void handleSetSurroundingText(wl_client* client, wl_resource* resource, const char* text, uint32_t cursor, uint32_t anchor);
+ void handleSetContentType(wl_client* client, wl_resource* resource, uint32_t hint, uint32_t purpose);
+ void handleSetCursorRectangle(wl_client* client, wl_resource* resource, int32_t x, int32_t y, int32_t width, int32_t height);
+ void handleSetPreferredLanguage(wl_client* client, wl_resource* resource, const char* language);
+ void handleCommitState(wl_client* client, wl_resource* resource, uint32_t serial);
+ void handleInvokeAction(wl_client* client, wl_resource* resource, uint32_t button, uint32_t index);
+
+ wl_listener m_liDisplayDestroy;
private:
wl_global* m_pGlobal = nullptr;
- wl_listener m_liDisplayDestroy;
std::vector<std::unique_ptr<STextInputV1>> m_pClients;
-}; \ No newline at end of file
+};