[haiku-bugs] Re: [Haiku] #12618: [app_server] redraw issues after changing Panel background color

  • From: "looncraz" <trac@xxxxxxxxxxxx>
  • Date: Tue, 26 Jan 2016 20:48:17 -0000

#12618: [app_server] redraw issues after changing Panel background color
----------------------------------+----------------------------
   Reporter:  diver               |      Owner:  axeld
       Type:  bug                 |     Status:  new
   Priority:  normal              |  Milestone:  R1
  Component:  Servers/app_server  |    Version:  R1/Development
 Resolution:                      |   Keywords:
 Blocked By:                      |   Blocking:
Has a Patch:  0                   |   Platform:  All
----------------------------------+----------------------------

Comment (by looncraz):

 Replying to [comment:3 looncraz]:

Replying to [comment:2 diver]:
Any ideas about foreground window corruption?

AFAICT, it's a matter of timing between the window moving and the
 drawing.  Probably a failure to disable CopyToFront() at some point, which
 results in part of the stalled drawing being moved during the window move.

I'll look to see if that theory pans out to anything.

 Okay, it's the use of LockParallelAccess() in Desktop::MoveWindowBy(...)
 that's the most likely culprit.  Locking exclusive access for CopyRegion()
 would probably fix that issue, though it will probably have some
 undesirable performance ramifications as this would halt all drawing for
 that instant - while also giving moving windows higher effective priority
 (not necessarily a bad thing, though).

 I will give that a try and see what happens.

--
Ticket URL: <https://dev.haiku-os.org/ticket/12618#comment:4>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: