From b2c7e9a206900af17145f3fe563a25c7a3c4a599 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Thu, 6 May 2021 12:36:30 +0300 Subject: Split view: Fixed theme and title updates Now every DocumentWidget is guaranteed a unique ID. The window title is updated when the keyroot chages. --- src/ui/widget.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/ui/widget.c') diff --git a/src/ui/widget.c b/src/ui/widget.c index 00fe0f5f..67ce1345 100644 --- a/src/ui/widget.c +++ b/src/ui/widget.c @@ -1346,6 +1346,12 @@ iBool isHover_Widget(const iAnyObject *d) { return get_Window()->hover == d; } +iBool isUnderKeyRoot_Widget(const iAnyObject *d) { + iAssert(isInstance_Object(d, &Class_Widget)); + const iWidget *w = d; + return w && get_Window() && w->root == get_Window()->keyRoot; +} + iBool isSelected_Widget(const iAnyObject *d) { if (d) { iAssert(isInstance_Object(d, &Class_Widget)); -- cgit v1.2.3