Remove uneeded code to stop alt+f4 killing the window

This fixes ksmserver not being able to logout or shutdown correctly as
it was unable to kill Plasma.

Tests showed that pressing alt+f4 no longer kills the window anyway
(possibly a change in kwin?)

BUG: 338360
REVIEW: 121004
wilder-5.14
David Edmundson 12 years ago
parent 2ea83cf298
commit 8851c1b2e6
  1. 10
      shell/desktopview.cpp

@ -186,15 +186,7 @@ bool DesktopView::event(QEvent *e)
}
}
} else if (e->type() == QEvent::Close) {
if (!ShellManager::s_standaloneOption) {
//prevent ALT+F4 from killing the shell
e->ignore();
return true;
}
//FIXME: this should *not* be needed
} else if (e->type() == QEvent::FocusIn) {
} else if (e->type() == QEvent::FocusIn) { //FIXME: this should *not* be needed
ensureWindowType();
} else if (e->type() == QEvent::FocusOut) {

Loading…
Cancel
Save