aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-07-03 13:01:58 (GMT)
committerfluxgen <fluxgen>2003-07-03 13:01:58 (GMT)
commitfe6a0795ac8b3e0783e6590ae73a3b6dc383df3c (patch)
tree6df43701f88741ebe04337427f5f2726e6ea18fe /src
parent8890bfe94688fdcc7c22f99a6725f6030a98a71f (diff)
downloadfluxbox_paul-fe6a0795ac8b3e0783e6590ae73a3b6dc383df3c.zip
fluxbox_paul-fe6a0795ac8b3e0783e6590ae73a3b6dc383df3c.tar.bz2
make sure at least one pixel is visible in autohide mode
Diffstat (limited to 'src')
-rw-r--r--src/Slit.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Slit.cc b/src/Slit.cc
index cef7448..4e391bb 100644
--- a/src/Slit.cc
+++ b/src/Slit.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Slit.cc,v 1.69 2003/06/27 15:05:19 rathnor Exp $ 25// $Id: Slit.cc,v 1.70 2003/07/03 13:01:58 fluxgen Exp $
26 26
27#include "Slit.hh" 27#include "Slit.hh"
28 28
@@ -825,7 +825,9 @@ void Slit::reposition() {
825 825
826 int border_width = theme().borderWidth(); 826 int border_width = theme().borderWidth();
827 int bevel_width = theme().bevelWidth(); 827 int bevel_width = theme().bevelWidth();
828 828 // make sure at leaste one pixel is visible
829 if (border_width >= bevel_width)
830 bevel_width = border_width + 1;
829 // place the slit in the appropriate place 831 // place the slit in the appropriate place
830 switch (placement()) { 832 switch (placement()) {
831 case TOPLEFT: 833 case TOPLEFT: