[haiku-bugs] Re: [Haiku] #9576: If a window closes while the user is CLICKING on a menu, the menu is still there
- From: "jscipione" <trac@xxxxxxxxxxxx>
- Date: Thu, 04 Apr 2013 18:35:26 -0000
#9576: If a window closes while the user is CLICKING on a menu, the menu is
still
there
----------------------------------+----------------------------
Reporter: waddlesplash | Owner: jscipione
Type: bug | Status: assigned
Priority: normal | Milestone: R1
Component: Kits/Interface Kit | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
----------------------------------+----------------------------
Comment (by jscipione):
Replying to [comment:9 axeld]:
> And no, you cannot change QuitRequested() to return false in this case,
as this would be a major API change, and, from the point of the developer,
completely random behavior.
Why can't I change BWindows's QuitRequested() method to return false? How
is that a major API change, how is that completely random behavior? AFAIK
the BWindow::QuitRequested() is allowed to return false to indicate that
quit was cancelled and the caller is suppose to check the return value and
respond appropriately (say by manually Quit()ing instead).
I have looked at the BWindow quit and deconstruction code as well as the
menu tracking code for several hours now and it is a bit hairy with a few
hacks piled up over the years and I'm a bit reluctant to mess with it too
much. I'm looking for the easiest way to solve this bug without breaking
anything. The correct behavior, I think, is to cancel closing the window,
but, if it is easier to close the menu instead I'll do that. So far I
haven't found an easy way to do either.
--
Ticket URL: <http://dev.haiku-os.org/ticket/9576#comment:10>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.
Other related posts:
- » [haiku-bugs] [Haiku] #9576: If a window closes while the user is CLICKING on a menu, the menu is still there- waddlesplash
- » [haiku-bugs] Re: [Haiku] #9576: If a window closes while the user is CLICKING on a menu, the menu is still there- anevilyak
- » [haiku-bugs] Re: [Haiku] #9576: If a window closes while the user is CLICKING on a menu, the menu is still there- jscipione
- » [haiku-bugs] Re: [Haiku] #9576: If a window closes while the user is CLICKING on a menu, the menu is still there- waddlesplash
- » [haiku-bugs] Re: [Haiku] #9576: If a window closes while the user is CLICKING on a menu, the menu is still there- jscipione
- » [haiku-bugs] Re: [Haiku] #9576: If a window closes while the user is CLICKING on a menu, the menu is still there- jscipione
- » [haiku-bugs] [Haiku] #9576: If a window closes while the user is CLICKING on a menu, the menu is still there- jscipione
- » [haiku-bugs] [Haiku] #9576: If a window closes while the user is CLICKING on a menu, the menu is still there- jscipione
- » [haiku-bugs] [Haiku] #9576: If a window closes while the user is CLICKING on a menu, the menu is still there- jscipione
- » [haiku-bugs] [Haiku] #9576: If a window closes while the user is CLICKING on a menu, the menu is still there- jscipione
- » [haiku-bugs] Re: [Haiku] #9576: If a window closes while the user is CLICKING on a menu, the menu is still there- axeld
- » [haiku-bugs] Re: [Haiku] #9576: If a window closes while the user is CLICKING on a menu, the menu is still there- jscipione
- » [haiku-bugs] Re: [Haiku] #9576: If a window closes while the user is CLICKING on a menu, the menu is still there- axeld
- » [haiku-bugs] Re: [Haiku] #9576: If a window closes while the user is CLICKING on a menu, the menu is still there- axeld
- » [haiku-bugs] Re: [Haiku] #9576: If a window closes while the user is CLICKING on a menu, the menu is still there - jscipione
- » [haiku-bugs] Re: [Haiku] #9576: If a window closes while the user is CLICKING on a menu, the menu is still there- waddlesplash
- » [haiku-bugs] Re: [Haiku] #9576: If a window closes while the user is CLICKING on a menu, the menu is still there- axeld
- » [haiku-bugs] Re: [Haiku] #9576: If a window closes while the user is CLICKING on a menu, the menu is still there- jscipione
- » [haiku-bugs] Re: [Haiku] #9576: If a window closes while the user is CLICKING on a menu, the menu is still there- jscipione
- » [haiku-bugs] Re: [Haiku] #9576: If a window closes while the user is CLICKING on a menu, the menu is still there- jackburton
- » [haiku-bugs] Re: [Haiku] #9576: If a window closes while the user is CLICKING on a menu, the menu is still there- leavengood
- » [haiku-bugs] Re: [Haiku] #9576: If a window closes while the user is CLICKING on a menu, the menu is still there- Haiku