diff options
author | fluxgen <fluxgen> | 2003-05-17 11:05:33 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-05-17 11:05:33 (GMT) |
commit | dc3455a72e4562b54b4c9cad12f5162a75f4fb4d (patch) | |
tree | cdf53b927e82fd671b0da3ce21780b60f063cb84 | |
parent | e55252b46417d90be6bd730f2fcb16fc0e82eae9 (diff) | |
download | fluxbox_lack-dc3455a72e4562b54b4c9cad12f5162a75f4fb4d.zip fluxbox_lack-dc3455a72e4562b54b4c9cad12f5162a75f4fb4d.tar.bz2 |
minor fixes
-rw-r--r-- | src/Screen.cc | 18 |
1 files 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 @@ | |||
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: Screen.cc,v 1.169 2003/05/16 00:35:50 fluxgen Exp $ | 25 | // $Id: Screen.cc,v 1.170 2003/05/17 11:05:33 fluxgen Exp $ |
26 | 26 | ||
27 | 27 | ||
28 | #include "Screen.hh" | 28 | #include "Screen.hh" |
@@ -125,17 +125,15 @@ static bool running = true; | |||
125 | namespace { | 125 | namespace { |
126 | 126 | ||
127 | int anotherWMRunning(Display *display, XErrorEvent *) { | 127 | int anotherWMRunning(Display *display, XErrorEvent *) { |
128 | fprintf(stderr, | 128 | cerr<<I18n::instance()-> |
129 | I18n::instance()-> | ||
130 | getMessage( | 129 | getMessage( |
131 | FBNLS::ScreenSet, FBNLS::ScreenAnotherWMRunning, | 130 | FBNLS::ScreenSet, FBNLS::ScreenAnotherWMRunning, |
132 | "BScreen::BScreen: an error occured while querying the X server.\n" | 131 | "BScreen::BScreen: an error occured while querying the X server.\n" |
133 | " another window manager already running on display %s.\n"), | 132 | " another window manager already running on display ")<<DisplayString(display)<<endl; |
134 | DisplayString(display)); | ||
135 | 133 | ||
136 | running = false; | 134 | running = false; |
137 | 135 | ||
138 | return(-1); | 136 | return -1; |
139 | } | 137 | } |
140 | 138 | ||
141 | FbTk::Menu *createMenuFromScreen(BScreen &screen) { | 139 | FbTk::Menu *createMenuFromScreen(BScreen &screen) { |
@@ -1301,8 +1299,12 @@ FluxboxWindow *BScreen::createWindow(Window client) { | |||
1301 | *layerManager().getLayer(Fluxbox::instance()->getNormalLayer())); | 1299 | *layerManager().getLayer(Fluxbox::instance()->getNormalLayer())); |
1302 | 1300 | ||
1303 | #ifdef SLIT | 1301 | #ifdef SLIT |
1304 | if (win->initialState() == WithdrawnState) | 1302 | if (win->initialState() == WithdrawnState) { |
1305 | slit()->addClient(win->clientWindow()); | 1303 | delete win; |
1304 | win = 0; | ||
1305 | slit()->addClient(client); | ||
1306 | return 0; | ||
1307 | } | ||
1306 | #endif // SLIT | 1308 | #endif // SLIT |
1307 | 1309 | ||
1308 | if (!win->isManaged()) { | 1310 | if (!win->isManaged()) { |