diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-06 12:36:30 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-06 12:36:30 +0300 |
commit | b2c7e9a206900af17145f3fe563a25c7a3c4a599 (patch) | |
tree | a1b7401bfe5c640ee23e236a8b9923d0bbdc2c67 /src/ui/widget.c | |
parent | 4e8e62653549123e813707cdda4bc2526e9d59d0 (diff) |
Split view: Fixed theme and title updates
Now every DocumentWidget is guaranteed a unique ID. The window title is updated when the keyroot chages.
Diffstat (limited to 'src/ui/widget.c')
-rw-r--r-- | src/ui/widget.c | 6 |
1 files changed, 6 insertions, 0 deletions
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) { | |||
1346 | return get_Window()->hover == d; | 1346 | return get_Window()->hover == d; |
1347 | } | 1347 | } |
1348 | 1348 | ||
1349 | iBool isUnderKeyRoot_Widget(const iAnyObject *d) { | ||
1350 | iAssert(isInstance_Object(d, &Class_Widget)); | ||
1351 | const iWidget *w = d; | ||
1352 | return w && get_Window() && w->root == get_Window()->keyRoot; | ||
1353 | } | ||
1354 | |||
1349 | iBool isSelected_Widget(const iAnyObject *d) { | 1355 | iBool isSelected_Widget(const iAnyObject *d) { |
1350 | if (d) { | 1356 | if (d) { |
1351 | iAssert(isInstance_Object(d, &Class_Widget)); | 1357 | iAssert(isInstance_Object(d, &Class_Widget)); |