cosmetic changes
This commit is contained in:
parent
fe412dbeef
commit
06837ba864
2 changed files with 9 additions and 18 deletions
|
@ -93,11 +93,6 @@ void CommandDialog::show() {
|
|||
void CommandDialog::hide() {
|
||||
FbTk::FbWindow::hide();
|
||||
Fluxbox::instance()->setShowingDialog(false);
|
||||
|
||||
// return focus to fluxbox window
|
||||
if (FocusControl::focusedFbWindow())
|
||||
FocusControl::focusedFbWindow()->focus();
|
||||
|
||||
}
|
||||
|
||||
void CommandDialog::exposeEvent(XExposeEvent &event) {
|
||||
|
|
|
@ -884,23 +884,19 @@ void Fluxbox::handleUnmapNotify(XUnmapEvent &ue) {
|
|||
return;
|
||||
}
|
||||
|
||||
WinClient *winclient = 0;
|
||||
WinClient *winclient = searchWindow(ue.window);
|
||||
|
||||
if ((winclient = searchWindow(ue.window)) != 0) {
|
||||
|
||||
if (winclient != 0) {
|
||||
FluxboxWindow *win = winclient->fbwindow();
|
||||
|
||||
if (!win) {
|
||||
delete winclient;
|
||||
return;
|
||||
}
|
||||
|
||||
// this should delete client and adjust m_focused_window if necessary
|
||||
win->unmapNotifyEvent(ue);
|
||||
if (winclient != 0) {
|
||||
|
||||
FluxboxWindow *win = winclient->fbwindow();
|
||||
if (!win) {
|
||||
delete winclient;
|
||||
return;
|
||||
}
|
||||
|
||||
// this should delete client and adjust m_focused_window if necessary
|
||||
win->unmapNotifyEvent(ue);
|
||||
|
||||
// according to http://tronche.com/gui/x/icccm/sec-4.html#s-4.1.4
|
||||
// a XWithdrawWindow is
|
||||
// 1) unmapping the window (which leads to the upper branch
|
||||
|
|
Loading…
Reference in a new issue