all repos — fluxbox @ 2cc98fe16dff976b8e2cd2e517787fada8cdc817

custom fork of the fluxbox windowmanager

fixed autohide
fluxgen fluxgen
commit

2cc98fe16dff976b8e2cd2e517787fada8cdc817

parent

95122e911f63969ebc88cd3b47a0810636b9fc17

1 files changed, 7 insertions(+), 5 deletions(-)

jump to
M src/Toolbar.ccsrc/Toolbar.cc

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Toolbar.cc,v 1.94 2003/06/24 18:33:29 fluxgen Exp $ +// $Id: Toolbar.cc,v 1.95 2003/06/25 12:33:28 fluxgen Exp $ #include "Toolbar.hh"

@@ -857,8 +857,7 @@ dx = tmp + frame.bevel_w;

} else dy += frame.bevel_w; - m_theme.font().drawText( - frame.window_label.window(), + m_theme.font().drawText(frame.window_label.window(), screen().screenNumber(), m_theme.windowTextGC(), foc->title().c_str(), newlen,

@@ -1176,6 +1175,10 @@ frame.label_h = frame.height;

frame.button_w = frame.height; } + // So we get at least one pixel visible in hidden mode + if (bevel_width <= border_width) + bevel_width = border_width + 1; + switch (where) { case TOPLEFT: frame.x = head_x;

@@ -1193,7 +1196,7 @@

break; case TOPCENTER: - frame.x = head_x + ((head_w - frame.width) / 2); + frame.x = head_x + (head_w - frame.width) / 2; frame.y = head_y; frame.x_hidden = frame.x; frame.y_hidden = head_y + bevel_width - border_width - frame.height;

@@ -1255,7 +1258,6 @@ frame.x_hidden = frame.x + frame.width - bevel_width - border_width;

frame.y_hidden = frame.y; break; } - } void Toolbar::HideHandler::timeout() {