summaryrefslogtreecommitdiff
path: root/src/ui/root.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-09-20 11:37:23 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-09-20 11:37:23 +0300
commit2d81addf78d6a8b0fb2f2959b04a385c4adffdf2 (patch)
tree5e0f45b9c945499bc6a6669563de13c5203981a6 /src/ui/root.c
parent201021092d204680b353c82ce9e9beb76f3044e8 (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.c10
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
301void 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
311iPtrArray *onTop_Root(iRoot *d) { 301iPtrArray *onTop_Root(iRoot *d) {
312 if (!d->onTop) { 302 if (!d->onTop) {
313 d->onTop = new_PtrArray(); 303 d->onTop = new_PtrArray();