[haiku-bugs] Re: [Haiku] #13286: [Screen] Bug- monitor view does not update

  • From: "looncraz" <trac@xxxxxxxxxxxx>
  • Date: Tue, 02 May 2017 14:48:27 -0000

#13286: [Screen] Bug- monitor view does not update
---------------------------+--------------------------------
   Reporter:  perelandra   |      Owner:  looncraz
       Type:  bug          |     Status:  closed
   Priority:  normal       |  Milestone:  Unscheduled
  Component:  Preferences  |    Version:  R1/Development
 Resolution:  fixed        |   Keywords:  Screen Backgrounds
 Blocked By:               |   Blocking:
Has a Patch:  1            |   Platform:  All
---------------------------+--------------------------------

Comment (by looncraz):

 Replying to [comment:12 axeld]:

Can't we simply send a message causing the `BWindow::ScreenChanged()`
 hook to be called? That's the closest thing we have, at least.


 You could, which would reduce the data sharing with applications somewhat
 (only saving a few cycles per BApplication and BWindow, though...
 B_COLORS_UPDATED is very efficient).

Another alternative would be to register for desktop changes at some
 place. If I'll ever finish https://github.com/axeld/haiku/tree/background,
 then `BScreen` would be the natural owner of this API.

 I've always preferred the subscriber/provider model, myself... considering
 how few apps will care about the desktop color, this seems like a
 reasonable area to have custom facilities... but then you're tracking a
 list of subscribers.

 As I said previously, I do prefer generic solutions as a matter of course
 - even if it has more overhead, but that is not always best.

--
Ticket URL: <https://dev.haiku-os.org/ticket/13286#comment:13>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: