diff options
author | fluxgen <fluxgen> | 2003-07-03 13:01:58 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-07-03 13:01:58 (GMT) |
commit | fe6a0795ac8b3e0783e6590ae73a3b6dc383df3c (patch) | |
tree | 6df43701f88741ebe04337427f5f2726e6ea18fe | |
parent | 8890bfe94688fdcc7c22f99a6725f6030a98a71f (diff) | |
download | fluxbox_paul-fe6a0795ac8b3e0783e6590ae73a3b6dc383df3c.zip fluxbox_paul-fe6a0795ac8b3e0783e6590ae73a3b6dc383df3c.tar.bz2 |
make sure at least one pixel is visible in autohide mode
-rw-r--r-- | src/Slit.cc | 6 |
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: |