#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):
Sorry about not responding earlier - I was on vacation.
Making this work as a global event wouldn't be terribly difficult, though
you would be able to use set_ui_color() with B_DESKTOP_COLOR except to
have it apply to the current desktop...
BScreen's SetDesktopColor would be the only proper way to set desktop
color. It would construct a message to the app_server
{{{
BMessage {
screen_id screen;
uint32 workspace;
rgb_color color;
}
}}}
The app_server would then set the color and broadcast a B_COLORS_UPDATED
message with B_DESKTOP_COLOR and the above information (possibly more than
one entry, using a custom solver for the DelayedMessage in the app_server
- which is already supported).
Screen, Backgrounds, and Tracker would simply parse that message and there
would be no need for any custom communications. Third party apps which
want to respond to desktop color changes would need only do the same (such
as desktop applets).
--
Ticket URL: <https://dev.haiku-os.org/ticket/13286#comment:11>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.