support zwp_input_method_v2 popups

This commit is contained in:
vaxerski
2022-08-05 17:07:01 +02:00
parent 9a8a6317ff
commit e0ada97a24
8 changed files with 211 additions and 0 deletions

View File

@@ -294,4 +294,23 @@ struct SIMEKbGrab {
wlr_keyboard* pKeyboard = nullptr;
DYNLISTENER(grabDestroy);
};
struct SIMEPopup {
wlr_input_popup_surface_v2* pSurface = nullptr;
int x, y;
int realX, realY;
bool visible;
DYNLISTENER(mapPopup);
DYNLISTENER(unmapPopup);
DYNLISTENER(destroyPopup);
DYNLISTENER(commitPopup);
DYNLISTENER(focusedSurfaceUnmap);
bool operator==(const SIMEPopup& other) {
return pSurface == other.pSurface;
}
};