#15122 closed defect (fixed)

Exit does not exit

Reported by: mmarsan Owned by: vadz
Priority: normal Milestone:
Component: wxGTK Version: stable-latest
Keywords: exit menu Cc:
Blocked By: Blocking:
Patch: no

Description

In my Ubuntu 12.04 OS, the "exit" menu for any wx app doesn't work.
You can see it even in the minimal sample.
However, as soon as an event is fired (e.g. move the mouse) the app closes.
So, a nasty workaround is adding

wxTheApp->WakeUpIdle();
}}} to (typical) OnQuit() handler, after 'Close(true)'

I don't see this issue in wxMSW.

Change History (2)

comment:1 Changed 16 months ago by vadz

  • Owner set to vadz
  • Status changed from new to accepted

I officially hate Ubuntu.

Thanks for finding this one, I'll add your nasty workaround to wxGTK itself because I see no other solution.

comment:2 Changed 16 months ago by VZ

  • Resolution set to fixed
  • Status changed from accepted to closed

(In [73737]) Fix program not shutting down when using Ubuntu app menu.

Ensure that an idle event is generated after a menu event even when the latter
comes, via DBUS, from the out of process app menu and not from a real GTK menu.

Closes #15122.

Note: See TracTickets for help on using tickets.