check transient later
This commit is contained in:
parent
25e318b255
commit
988a1eed43
1 changed files with 5 additions and 2 deletions
|
@ -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: Workspace.cc,v 1.24 2002/08/16 11:02:41 fluxgen Exp $
|
// $Id: Workspace.cc,v 1.25 2002/08/18 23:35:31 fluxgen Exp $
|
||||||
|
|
||||||
#include "Workspace.hh"
|
#include "Workspace.hh"
|
||||||
|
|
||||||
|
@ -139,8 +139,11 @@ int Workspace::removeWindow(FluxboxWindow *w) {
|
||||||
Fluxbox::instance()->setFocusedWindow(0); // set focused window to none
|
Fluxbox::instance()->setFocusedWindow(0); // set focused window to none
|
||||||
} else if (w->isTransient() && w->getTransientFor() &&
|
} else if (w->isTransient() && w->getTransientFor() &&
|
||||||
w->getTransientFor()->isVisible()) {
|
w->getTransientFor()->isVisible()) {
|
||||||
if (w->getTransientFor() == w) // FATAL ERROR, this should not happend
|
/* TODO: check transient
|
||||||
|
if (w->getTransientFor() == w) { // FATAL ERROR, this should not happend
|
||||||
|
cerr<<"w->getTransientFor() == w: aborting!"<<endl;
|
||||||
abort();
|
abort();
|
||||||
|
}*/
|
||||||
w->getTransientFor()->setInputFocus();
|
w->getTransientFor()->setInputFocus();
|
||||||
} else {
|
} else {
|
||||||
FluxboxWindow *top = 0;
|
FluxboxWindow *top = 0;
|
||||||
|
|
Loading…
Reference in a new issue