updated from cleaning in Toolbar

This commit is contained in:
fluxgen 2002-11-27 12:30:38 +00:00
parent 06ad66a211
commit 256b12aa35

View file

@ -22,7 +22,7 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE. // DEALINGS IN THE SOFTWARE.
// $Id: Slit.cc,v 1.26 2002/11/15 12:31:58 fluxgen Exp $ // $Id: Slit.cc,v 1.27 2002/11/27 12:30:38 fluxgen Exp $
//use GNU extensions //use GNU extensions
#ifndef _GNU_SOURCE #ifndef _GNU_SOURCE
@ -650,15 +650,15 @@ void Slit::reposition() {
if (tbar->x() < frame.x + sw && tbar->x() + tw > frame.x && if (tbar->x() < frame.x + sw && tbar->x() + tw > frame.x &&
tbar->y() < frame.y + sh && tbar->y() + th > frame.y) { tbar->y() < frame.y + sh && tbar->y() + th > frame.y) {
if (frame.y < th) { if (frame.y < th) {
frame.y += tbar->getExposedHeight(); frame.y += tbar->exposedHeight();
if (screen()->getSlitDirection() == VERTICAL) if (screen()->getSlitDirection() == VERTICAL)
frame.y_hidden += tbar->getExposedHeight(); frame.y_hidden += tbar->exposedHeight();
else else
frame.y_hidden = frame.y; frame.y_hidden = frame.y;
} else { } else {
frame.y -= tbar->getExposedHeight(); frame.y -= tbar->exposedHeight();
if (screen()->getSlitDirection() == VERTICAL) if (screen()->getSlitDirection() == VERTICAL)
frame.y_hidden -= tbar->getExposedHeight(); frame.y_hidden -= tbar->exposedHeight();
else else
frame.y_hidden = frame.y; frame.y_hidden = frame.y;
} }