mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 15:45:59 +01:00
parent
2d40046f24
commit
25964e5a2b
2 changed files with 6 additions and 0 deletions
|
@ -55,6 +55,8 @@ bool CVirtualKeyboard::isVirtual() {
|
|||
}
|
||||
|
||||
wlr_keyboard* CVirtualKeyboard::wlr() {
|
||||
if (keyboard.expired())
|
||||
return nullptr;
|
||||
return keyboard.lock()->wlr();
|
||||
}
|
||||
|
||||
|
@ -67,5 +69,7 @@ void CVirtualKeyboard::disconnectCallbacks() {
|
|||
}
|
||||
|
||||
wl_client* CVirtualKeyboard::getClient() {
|
||||
if (keyboard.expired())
|
||||
return nullptr;
|
||||
return keyboard.lock()->client();
|
||||
}
|
||||
|
|
|
@ -166,5 +166,7 @@ void CVirtualPointer::disconnectCallbacks() {
|
|||
}
|
||||
|
||||
wlr_pointer* CVirtualPointer::wlr() {
|
||||
if (pointer.expired())
|
||||
return nullptr;
|
||||
return pointer.lock()->wlr();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue