From dc3455a72e4562b54b4c9cad12f5162a75f4fb4d Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sat, 17 May 2003 11:05:33 +0000 Subject: minor fixes --- src/Screen.cc | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/Screen.cc b/src/Screen.cc index 90fcc78..4a243ff 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Screen.cc,v 1.169 2003/05/16 00:35:50 fluxgen Exp $ +// $Id: Screen.cc,v 1.170 2003/05/17 11:05:33 fluxgen Exp $ #include "Screen.hh" @@ -125,17 +125,15 @@ static bool running = true; namespace { int anotherWMRunning(Display *display, XErrorEvent *) { - fprintf(stderr, - I18n::instance()-> + cerr< getMessage( FBNLS::ScreenSet, FBNLS::ScreenAnotherWMRunning, "BScreen::BScreen: an error occured while querying the X server.\n" - " another window manager already running on display %s.\n"), - DisplayString(display)); + " another window manager already running on display ")<getNormalLayer())); #ifdef SLIT - if (win->initialState() == WithdrawnState) - slit()->addClient(win->clientWindow()); + if (win->initialState() == WithdrawnState) { + delete win; + win = 0; + slit()->addClient(client); + return 0; + } #endif // SLIT if (!win->isManaged()) { -- cgit v0.11.2