[haiku-bugs] Re: [Haiku] #9576: If a window closes while the user is CLICKING on a menu, the menu is still there

  • From: "jackburton" <trac@xxxxxxxxxxxx>
  • Date: Mon, 03 Jun 2013 06:58:51 -0000

#9576: If a window closes while the user is CLICKING on a menu, the menu is 
still
there
----------------------------------+----------------------------
   Reporter:  waddlesplash        |      Owner:  nobody
       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 jackburton):

 If I remember correctly (but probably I don't), the lines
 {{{
         //Wait if a menu is still tracking
         if (fMenuSem > 0) {
                 while (acquire_sem(fMenuSem) == B_INTERRUPTED)
                         ;
         }
 }}}

 in BWindow's destructor are the ones which waits for the BMenu to finish
 tracking.

 I can't remember the bug I was trying to fix in commit
 cb8bdc4edae377c5900904a38f62c0ec08d5c5a5, but might be worth reverting to
 see what happens.

--
Ticket URL: <http://dev.haiku-os.org/ticket/9576#comment:15>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: