From 7b070f07d7987396d8abe9cf45f1e8280886b20f Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 16 Sep 2019 19:32:26 +0300 Subject: [PATCH] Do not navigate out of a widget holding the pointer grab --- source/panel.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/panel.cpp b/source/panel.cpp index b9ddbf1..a9d581f 100644 --- a/source/panel.cpp +++ b/source/panel.cpp @@ -84,6 +84,9 @@ bool Panel::navigate(Navigation nav) origin_dim = abs(nav_x)*geom.h+abs(nav_y)*geom.w; } + if(pointer_grabbed && pointer_focus==input_focus) + return false; + Widget *sibling = find_next_child(origin_x, origin_y, origin_dim, nav_x, nav_y); if(!sibling && input_focus) { -- 2.43.0