diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-07-10 22:24:48 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-07-10 22:24:48 +0000 |
| commit | 9e99a9a1e21b7b7214b17a759e58efd00b254551 (patch) | |
| tree | a5068122443613e868a117fe76cc0fcde07f164e /src/blackbox.cc | |
| parent | b21cf8b33520e44611657e2876131b67dc0472d6 (diff) | |
sync with bb cvs
Diffstat (limited to 'src/blackbox.cc')
| -rw-r--r-- | src/blackbox.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/blackbox.cc b/src/blackbox.cc index dafc6bdf..9eddcfdf 100644 --- a/src/blackbox.cc +++ b/src/blackbox.cc @@ -328,10 +328,18 @@ void Blackbox::process_event(XEvent *e) { BlackboxWindow *win = searchWindow(e->xmaprequest.window); if (win) { + bool focus = False; if (win->isIconic()) { win->deiconify(); - win->setInputFocus(); + focus = True; + } + if (win->isShaded()) { + win->shade(); + focus = True; } + + if (focus && (win->isTransient() || win->getScreen()->doFocusNew())) + win->setInputFocus(); } else { BScreen *screen = searchScreen(e->xmaprequest.parent); |
