VirtualBox

Changeset 3300 in vbox for trunk


Ignore:
Timestamp:
Jun 26, 2007 3:30:12 PM (18 years ago)
Author:
vboxsync
Message:

FE/SDL: fixed dropping of XPCOM events; make ShowConsoleWindow work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp

    r3289 r3300  
    513513        if (!canShow)
    514514            return E_POINTER;
    515 #if defined (__LINUX__)
    516         /// @todo see the big comment in Frontends/VirtualBox/src/VBoxVMListBoxItem::switchTo()
    517         *canShow = FALSE;
    518 #else
    519515        SDL_SysWMinfo info;
    520516        SDL_VERSION(&info.version);
    521517        *canShow = !!SDL_GetWMInfo(&info);
    522 #endif
    523518        return S_OK;
    524519    }
     
    531526        {
    532527#if defined (__LINUX__)
    533             *winId = (ULONG64) info.info.x11.window;
     528            *winId = (ULONG64) info.info.x11.wmwindow;
    534529#elif defined (__WIN__)
    535530            *winId = (ULONG64) info.window;
     
    19161911                    {
    19171912                        LogFlow(("SDL_USER_EVENT_XPCOM_EVENTQUEUE: processing XPCOM event queue...\n"));
    1918                         consumedXPCOMUserEvent();
    19191913                        eventQ->ProcessPendingEvents();
    19201914                        signalXPCOMEventQueueThread();
     
    43034297        int rc = SDL_PollEvent (event);
    43044298        if (rc == 1)
     4299        {
     4300#ifdef USE_XPCOM_QUEUE_THREAD
     4301            if (event->type == SDL_USER_EVENT_XPCOM_EVENTQUEUE)
     4302                consumedXPCOMUserEvent();
     4303#endif
    43054304            return 1;
     4305        }
    43064306        /* Immediately wake up if new SDL events are available. This does not
    43074307         * work for internal SDL events. Don't wait more than 10ms. */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette