diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-09-20 11:37:23 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-09-20 11:37:23 +0300 |
commit | 2d81addf78d6a8b0fb2f2959b04a385c4adffdf2 (patch) | |
tree | 5e0f45b9c945499bc6a6669563de13c5203981a6 /src/ui/root.c | |
parent | 201021092d204680b353c82ce9e9beb76f3044e8 (diff) |
Experimenting with independent popup windows
Toe dipping into multiple window support by allowing popup menu widgets to be displayed in independent windows.
This is not a 100% replacement for native menus, but it gets pretty close.
Diffstat (limited to 'src/ui/root.c')
-rw-r--r-- | src/ui/root.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/ui/root.c b/src/ui/root.c index 52a08eca..9e290b05 100644 --- a/src/ui/root.c +++ b/src/ui/root.c | |||
@@ -298,16 +298,6 @@ void destroyPending_Root(iRoot *d) { | |||
298 | setCurrent_Root(oldRoot); | 298 | setCurrent_Root(oldRoot); |
299 | } | 299 | } |
300 | 300 | ||
301 | void postArrange_Root(iRoot *d) { | ||
302 | if (!d->pendingArrange) { | ||
303 | d->pendingArrange = iTrue; | ||
304 | SDL_Event ev = { .type = SDL_USEREVENT }; | ||
305 | ev.user.code = arrange_UserEventCode; | ||
306 | ev.user.data2 = d; | ||
307 | SDL_PushEvent(&ev); | ||
308 | } | ||
309 | } | ||
310 | |||
311 | iPtrArray *onTop_Root(iRoot *d) { | 301 | iPtrArray *onTop_Root(iRoot *d) { |
312 | if (!d->onTop) { | 302 | if (!d->onTop) { |
313 | d->onTop = new_PtrArray(); | 303 | d->onTop = new_PtrArray(); |