← Back to team overview

compiz team mailing list archive

[Bug 1078694] [NEW] Modal dialog broken on Unity

 

You have been subscribed to a public bug:

An application, developed with wxWidgets (2.9.4), which works on
Windows, MacOSX, Ubuntu-Gnome & Ubuntu-XFCE is broken when it is
executed under Unity.

Essentially, the application is a wxFrame with a menu, and a menu item
displays a dialog using ShowModal() (see below).

In Ubuntu-Gnome and in Ubuntu-XFCE (and Win & MacOSX), the menu is
disabled as long as the dialog is displayed, which is the expected
behavior.

Under Unity (Ubuntu 12.04.1 LTS & 12.10) the menu is not disabled while
the dialog is displayed: each subsequent click on the menu item displays
a new dialog window on top of the former dialog windows. Other active
elements (buttons) on the wxFrame are disabled while the dialog is
displayed, as they should be. The menu should be disabled under Unity as
well.

class myFrame: public wxFrame
{
...
}

void myframe::OnMenuitemClick( wxCommandEvent& event )
{
  myDialog* dp = new myDialog(this);
  
  dp->ShowModal();
}

class myDialog: public wxDialog
{
....
};

** Affects: compiz (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: bot-comment
-- 
Modal dialog broken on Unity
https://bugs.launchpad.net/bugs/1078694
You received this bug notification because you are a member of compiz packagers, which is subscribed to compiz in Ubuntu.