Fixed bug in removeWindow
This commit is contained in:
parent
7ba22413a2
commit
8248af0ef1
1 changed files with 10 additions and 10 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
// Workspace.cc for Fluxbox
|
||||||
|
// Copyright (c) 2001 - 2002 Henrik Kinnunen (fluxgen@linuxmail.org)
|
||||||
|
//
|
||||||
// Workspace.cc for Blackbox - an X11 Window manager
|
// Workspace.cc for Blackbox - an X11 Window manager
|
||||||
// Copyright (c) 1997 - 2000 Brad Hughes (bhughes@tcac.net)
|
// Copyright (c) 1997 - 2000 Brad Hughes (bhughes@tcac.net)
|
||||||
//
|
//
|
||||||
|
@ -19,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: Workspace.cc,v 1.8 2002/02/09 11:48:18 fluxgen Exp $
|
// $Id: Workspace.cc,v 1.9 2002/02/09 16:41:53 fluxgen Exp $
|
||||||
|
|
||||||
// use GNU extensions
|
// use GNU extensions
|
||||||
#ifndef _GNU_SOURCE
|
#ifndef _GNU_SOURCE
|
||||||
|
@ -57,13 +60,9 @@ Workspace::Workspace(BScreen *scrn, int i):
|
||||||
screen(scrn),
|
screen(scrn),
|
||||||
lastfocus(0),
|
lastfocus(0),
|
||||||
name(""),
|
name(""),
|
||||||
|
id(i),
|
||||||
cascade_x(32), cascade_y(32)
|
cascade_x(32), cascade_y(32)
|
||||||
{
|
{
|
||||||
screen = scrn;
|
|
||||||
|
|
||||||
cascade_x = cascade_y = 32;
|
|
||||||
|
|
||||||
id = i;
|
|
||||||
|
|
||||||
clientmenu = new Clientmenu(this);
|
clientmenu = new Clientmenu(this);
|
||||||
|
|
||||||
|
@ -117,10 +116,11 @@ const int Workspace::removeWindow(FluxboxWindow *w) {
|
||||||
w->getTransientFor()->isVisible())
|
w->getTransientFor()->isVisible())
|
||||||
w->getTransientFor()->setInputFocus();
|
w->getTransientFor()->setInputFocus();
|
||||||
else {
|
else {
|
||||||
|
FluxboxWindow *top = 0;
|
||||||
FluxboxWindow *top = stackingList.front();
|
if (stackingList.size()!=0)
|
||||||
|
top = stackingList.front();
|
||||||
if (! top && ! top->setInputFocus()) {
|
|
||||||
|
if (!top || !top->setInputFocus()) {
|
||||||
Fluxbox::instance()->setFocusedWindow((FluxboxWindow *) 0);
|
Fluxbox::instance()->setFocusedWindow((FluxboxWindow *) 0);
|
||||||
XSetInputFocus(Fluxbox::instance()->getXDisplay(),
|
XSetInputFocus(Fluxbox::instance()->getXDisplay(),
|
||||||
screen->getToolbar()->getWindowID(),
|
screen->getToolbar()->getWindowID(),
|
||||||
|
|
Loading…
Reference in a new issue