diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-29 07:58:12 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-29 07:58:12 +0300 |
commit | de2dd81306da54b0bfdd9b075dc5de90c871b9af (patch) | |
tree | 0ebba8936496ead6e3441570a6e4e7002f2da1b4 /src/ui/root.c | |
parent | 87b5dbd9c0393e787d2499d796486d3293f17214 (diff) |
Working on multiple UI roots
Restore previous root after processing events. Adjusted colors of the non-focused root.
Diffstat (limited to 'src/ui/root.c')
-rw-r--r-- | src/ui/root.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/root.c b/src/ui/root.c index aec5f26f..247faf38 100644 --- a/src/ui/root.c +++ b/src/ui/root.c | |||
@@ -250,6 +250,10 @@ void setCurrent_Root(iRoot *root) { | |||
250 | activeRoot_ = root; | 250 | activeRoot_ = root; |
251 | } | 251 | } |
252 | 252 | ||
253 | iRoot *current_Root(void) { | ||
254 | return activeRoot_; | ||
255 | } | ||
256 | |||
253 | iRoot *get_Root(void) { | 257 | iRoot *get_Root(void) { |
254 | iAssert(activeRoot_); | 258 | iAssert(activeRoot_); |
255 | return activeRoot_; | 259 | return activeRoot_; |