summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/RootTheme.cc16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/RootTheme.cc b/src/RootTheme.cc
index 617cd8d..b174d25 100644
--- a/src/RootTheme.cc
+++ b/src/RootTheme.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: RootTheme.cc,v 1.2 2003/04/28 00:38:42 fluxgen Exp $ 22// $Id: RootTheme.cc,v 1.3 2003/08/16 10:01:57 fluxgen Exp $
23 23
24#include "RootTheme.hh" 24#include "RootTheme.hh"
25 25
@@ -35,6 +35,10 @@ RootTheme::RootTheme(int screen_num, std::string &screen_root_command):
35 m_border_color(*this, "borderColor", "BorderColor"), 35 m_border_color(*this, "borderColor", "BorderColor"),
36 m_screen_root_command(screen_root_command) { 36 m_screen_root_command(screen_root_command) {
37 37
38 *m_border_width = 0;
39 *m_bevel_width = 0;
40 *m_handle_width = 0;
41
38 XGCValues gcv; 42 XGCValues gcv;
39 Display *disp = FbTk::App::instance()->display(); 43 Display *disp = FbTk::App::instance()->display();
40 gcv.foreground = WhitePixel(disp, screen_num)^BlackPixel(disp, screen_num); 44 gcv.foreground = WhitePixel(disp, screen_num)^BlackPixel(disp, screen_num);
@@ -51,6 +55,16 @@ RootTheme::~RootTheme() {
51} 55}
52 56
53void RootTheme::reconfigTheme() { 57void RootTheme::reconfigTheme() {
58 // clamp values to "normal" size
59 if (*m_border_width > 20)
60 *m_border_width = 20;
61
62 if (*m_bevel_width > 20)
63 *m_bevel_width = 20;
64
65 if (*m_handle_width > 20)
66 *m_handle_width = 20;
67
54 // override resource root command? 68 // override resource root command?
55 if (m_screen_root_command == "") { 69 if (m_screen_root_command == "") {
56 // do root command 70 // do root command