Fix glitch in Screen prefs when changing background color.

When both Backgrounds and Screen are open, if the workspace color is changed
in Backgrounds the monitor preview in Screen will now refresh to the new color.

Also added a BAlert in BackgroundsView.cpp when failing to change the
background image.

Signed-off-by: Adrien Destugues <[email protected]>

Fixes #13286.
This commit is contained in:
Brian Hill
2017-04-30 10:29:39 +02:00
committed by Adrien Destugues
parent 4c3f62c894
commit b8a6139981
8 changed files with 50 additions and 8 deletions
+15
View File
@@ -0,0 +1,15 @@
/*
* Copyright 2017, Haiku.
* Distributed under the terms of the MIT License.
*
* Authors:
* Brian Hill <[email protected]>
*/
#ifndef _SCREEN_DEFS_H
#define _SCREEN_DEFS_H
// Message sent to Screen from Backgrounds when updating the background color
static const uint32 UPDATE_DESKTOP_COLOR_MSG = 'udsc';
#endif // _SCREEN_DEFS_H