GNOME Bugzilla – Bug 636522
breaks when main window is closed via window manager keyboard shortcut
Last modified: 2010-12-06 15:16:07 UTC
Created attachment 175880 [details] [review] patch fixing this bug After I close The Board's window with my window manager's keyboard shortcut, when I click the notification area icon the window comes back all gray, as if it is not rendering anymore. Turns out that the delete event must handled as to not let gtk destroy the window, and hide it instead, which is the current behaviour of pressing ESC. The attached patch fixes the problem.
Review of attachment 175880 [details] [review]: ::: src/js/ui/mainWindow.js @@ +96,3 @@ + + this._gtkWindow.connect("delete-event", + Lang.bind(this, this._hideGtkWindow)); I'd prefer a separate onWindowDeleteEvent callback. This way you don't have to add the hacky boolean return on hideGtkWindow.
The onGtkWindowDeleteEvent would obviously call hideGtkWindow.
Created attachment 175896 [details] [review] avoid destroying window when closing through window manager patch reworked as per Lucas' suggestion
Pushed to master (582d1d8b3a74bdc10e83f4adbfb5919b0a7bde52), thanks!