aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/desktop
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-11-09 02:34:04 +0000
committerVaxry <[email protected]>2024-11-09 02:34:04 +0000
commitcca227a53e10b9101d2fbcfb99e6360b416d7168 (patch)
tree84d74e2e738f364eb6a36396bace9de8be444cb1 /src/desktop
parentb9c439a55e5ecef563657da211bc10ddc3273a1c (diff)
downloadHyprland-cca227a53e10b9101d2fbcfb99e6360b416d7168.tar.gz
Hyprland-cca227a53e10b9101d2fbcfb99e6360b416d7168.zip
tablet: use inputMgr unified naming scheme
ref #8301
Diffstat (limited to 'src/desktop')
-rw-r--r--src/desktop/LayerSurface.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/desktop/LayerSurface.cpp b/src/desktop/LayerSurface.cpp
index 31c2482a..cd1c4742 100644
--- a/src/desktop/LayerSurface.cpp
+++ b/src/desktop/LayerSurface.cpp
@@ -326,8 +326,11 @@ void CLayerSurface::onCommit() {
[&WASLASTFOCUS](SP<CWLSurfaceResource> surf, const Vector2D& offset, void* data) { WASLASTFOCUS = WASLASTFOCUS || g_pSeatManager->state.keyboardFocus == surf; },
nullptr);
if (!WASLASTFOCUS && popupHead) {
- popupHead->breadthfirst([&WASLASTFOCUS](CPopup* popup, void* data) { WASLASTFOCUS = WASLASTFOCUS || (popup->m_pWLSurface && g_pSeatManager->state.keyboardFocus == popup->m_pWLSurface->resource()); },
- nullptr);
+ popupHead->breadthfirst(
+ [&WASLASTFOCUS](CPopup* popup, void* data) {
+ WASLASTFOCUS = WASLASTFOCUS || (popup->m_pWLSurface && g_pSeatManager->state.keyboardFocus == popup->m_pWLSurface->resource());
+ },
+ nullptr);
}
const bool WASEXCLUSIVE = interactivity == ZWLR_LAYER_SURFACE_V1_KEYBOARD_INTERACTIVITY_EXCLUSIVE;
const bool ISEXCLUSIVE = layerSurface->current.interactivity == ZWLR_LAYER_SURFACE_V1_KEYBOARD_INTERACTIVITY_EXCLUSIVE;