From: Mikko Rasa Date: Mon, 16 Sep 2019 16:32:26 +0000 (+0300) Subject: Do not navigate out of a widget holding the pointer grab X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=7b070f07d7987396d8abe9cf45f1e8280886b20f;p=libs%2Fgltk.git Do not navigate out of a widget holding the pointer grab --- 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) {