diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2018-03-24 13:06:59 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2018-03-24 13:06:59 +0000 |
| commit | 79b31708de7b1544d0e7b32d616ecb9b79d1b9bd (patch) | |
| tree | 4bcb449bcc1e90269f7c04ada08eab1762d8a199 /src/drivers/Android/Fl_Android_Window_Driver.cxx | |
| parent | db55dfbbd6e161ab1388583ef6834137a4a380e1 (diff) | |
Android: Made popup and menu windows work, fixed Fl::wait() recursion,
fixed incompatible Fl::wait() behavior.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12793 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/Android/Fl_Android_Window_Driver.cxx')
| -rw-r--r-- | src/drivers/Android/Fl_Android_Window_Driver.cxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/drivers/Android/Fl_Android_Window_Driver.cxx b/src/drivers/Android/Fl_Android_Window_Driver.cxx index 18bbe3bde..4e10d6d7d 100644 --- a/src/drivers/Android/Fl_Android_Window_Driver.cxx +++ b/src/drivers/Android/Fl_Android_Window_Driver.cxx @@ -76,10 +76,25 @@ void Fl_Android_Window_Driver::show() } } else { // bring window to front + Fl::first_window(pWindow); // TODO: does this really work? + expose_all(); } } +void Fl_Android_Window_Driver::hide() +{ + Fl_X* ip = Fl_X::i(pWindow); + if (hide_common()) return; + if (ip->region) { + delete ip->region; + ip->region = nullptr; + } + delete ip; + expose_all(); +} + + void Fl_Android_Window_Driver::expose_all() { for (Fl_X *x = Fl_X::first; x; x = x->next) { |
