The open source OpenXR runtime

u/var: Ignore button down when another item is active

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2619>

authored by

Andrei Aristarkhov and committed by
Marge Bot
50645b36 586af787

+2 -1
+2 -1
src/xrt/state_trackers/gui/gui_scene_debug.c
··· 526 526 if (disabled) { 527 527 btn->downed = false; 528 528 } else { 529 - btn->downed = igIsItemHovered(ImGuiHoveredFlags_RectOnly) && igIsMouseDown_Nil(ImGuiMouseButton_Left); 529 + btn->downed = igIsItemHovered(ImGuiHoveredFlags_RectOnly) && igIsMouseDown_Nil(ImGuiMouseButton_Left) && 530 + igIsItemActive(); 530 531 } 531 532 } 532 533