[Bug 1624407] Re: Add a 'quit' message that is app-wide, as opposed to mir_event_type_close_surface

2017-03-21 Thread Daniel van Vugt
Generally speaking fixing bug 1674749 (now bug 1671424) should be enough for most apps in the short term. I'm reminded of how Microsoft handles this problem... WM_CLOSE: https://msdn.microsoft.com/en- us/library/windows/desktop/ms632617(v=vs.85).aspx WM_QUIT:

[Bug 1624407] Re: Add a 'quit' message that is app-wide, as opposed to mir_event_type_close_surface

2017-03-21 Thread Olivier Tilloy
I’m not sure how a fix for bug #1674749 would address the use case in the description: a multi-window application (such as web browser) wants to distinguish between: - please close all windows one by one without retaining state for them - please quit the app, and save the state for all windows

[Bug 1624407] Re: Add a 'quit' message that is app-wide, as opposed to mir_event_type_close_surface

2017-03-21 Thread Daniel d'Andrada
Maybe a fix for bug 1674749 is what you want. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1624407 Title: Add a 'quit' message that is app-wide, as opposed to mir_event_type_close_surface To

[Bug 1624407] Re: Add a 'quit' message that is app-wide, as opposed to mir_event_type_close_surface

2017-03-02 Thread Daniel van Vugt
Clicking on a window's close button sends the app mir_event_type_close_window. That's just an informational message that apps are meant to act on (e.g. pop up a dialog if not terminate themselves). If you mean logout however, then I guess the right answer is that shells should send

[Bug 1624407] Re: Add a 'quit' message that is app-wide, as opposed to mir_event_type_close_surface

2017-03-02 Thread Gerry Boland
Does Mir provide enough api to allow application ask user a question before shutdown? In Unity7, typically that is requesting focus and popping up a dialog - should be ok, but good to think about it. -- You received this bug notification because you are a member of Ubuntu Bugs, which is

[Bug 1624407] Re: Add a 'quit' message that is app-wide, as opposed to mir_event_type_close_surface

2016-11-20 Thread Daniel van Vugt
** Summary changed: - Closing an application doesn’t actually close it, it merely requests all its windows to be closed + Add a 'quit' message that is app-wide, as opposed to mir_event_type_close_surface ** Changed in: mir Status: New => Triaged ** Changed in: mir (Ubuntu)