aboutsummaryrefslogtreecommitdiff
path: root/src/Toolbar.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-07-02 03:02:19 (GMT)
committermarkt <markt>2007-07-02 03:02:19 (GMT)
commit4e5e7668504ee511b0a422df08f2338f3f68e0fe (patch)
treec9fd3b695cd9bb8f509ef79e7582b2ba8effb104 /src/Toolbar.cc
parenta2aca6a343af4f5263c31069c984dfdd1ee6a0fa (diff)
downloadfluxbox-4e5e7668504ee511b0a422df08f2338f3f68e0fe.zip
fluxbox-4e5e7668504ee511b0a422df08f2338f3f68e0fe.tar.bz2
fix DOS when toolbar.button.borderWidth is large and toolbar.bevelWidth > 0
move transparency menu up with the other submenus
Diffstat (limited to 'src/Toolbar.cc')
-rw-r--r--src/Toolbar.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Toolbar.cc b/src/Toolbar.cc
index a1906c0..4a174bd 100644
--- a/src/Toolbar.cc
+++ b/src/Toolbar.cc
@@ -1034,6 +1034,7 @@ void Toolbar::rearrangeItems() {
1034 (*item_it)->hide(); 1034 (*item_it)->hide();
1035 // make sure it still gets told the toolbar height 1035 // make sure it still gets told the toolbar height
1036 tmpw = 1; tmph = height - 2*(bevel_width+borderW); 1036 tmpw = 1; tmph = height - 2*(bevel_width+borderW);
1037 if (tmph >= (1<<30)) tmph = 1;
1037 FbTk::translateSize(orient, tmpw, tmph); 1038 FbTk::translateSize(orient, tmpw, tmph);
1038 (*item_it)->resize(tmpw, tmph); // width of 0 changes to 1 anyway 1039 (*item_it)->resize(tmpw, tmph); // width of 0 changes to 1 anyway
1039 continue; 1040 continue;
@@ -1070,6 +1071,8 @@ void Toolbar::rearrangeItems() {
1070 tmpw = itemw; 1071 tmpw = itemw;
1071 tmph = height - size_offset; 1072 tmph = height - size_offset;
1072 } 1073 }
1074 if (tmpw >= (1<<30)) tmpw = 1;
1075 if (tmph >= (1<<30)) tmph = 1;
1073 next_x += tmpw + bevel_width; 1076 next_x += tmpw + bevel_width;
1074 if (bevel_width != 0) 1077 if (bevel_width != 0)
1075 next_x += 2*borderW; 1078 next_x += 2*borderW;