[haiku-bugs] Re: [Haiku] #5468: Draw() can overtake FrameResized()

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Wed, 25 Mar 2020 18:13:57 -0000

#5468: Draw() can overtake FrameResized()
----------------------------------+----------------------------
   Reporter:  bonefish            |      Owner:  axeld
       Type:  bug                 |     Status:  new
   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):

 I'm afraid that this bug cannot be fixed without changing how messages
 work unfortunately. There's no way for us to guarantee that a Draw() call
 will happen after a FrameResized() call without implementing a
 transaction. Most of the time it works but without a guarantee that
 messages will arrive in a certain order there are race conditions that
 pop-up now and then. This is a design flaw and was as much a problem on
 BeOS as it is on Haiku fundamentally. I've also observed that sliders
 sometimes don't send the message (or the receiver never get it.) For
 example in Deskbar preferences when you click to change the slider value,
 occasionally the icons don't resize and we end up in an invalid state.
 This is not a fault of the Deskbar code but is a bug somewhere deeper in
 the messaging system. I'm not sure if this bug is related to this one or
 not.
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/5468#comment:7>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: