From 940247c3e5639751e6bd5de0fab27af17a889d25 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 17 Jan 2003 07:10:52 +0000 Subject: make window placement not go off screen at all --- src/frame.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/frame.cc') diff --git a/src/frame.cc b/src/frame.cc index e85ff345..9606c420 100644 --- a/src/frame.cc +++ b/src/frame.cc @@ -75,12 +75,12 @@ void Frame::setStyle(otk::Style *style) { assert(style); - otk::Widget::setStyle(style); - // if a style was previously set, then 'replace' is true, cause we're // replacing a style bool replace = (_style); + otk::Widget::setStyle(style); + if (replace) { // XXX: do shit here whatever } -- cgit v1.2.3