X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=util%2Fepist%2Fscreen.cc;h=1705202bc319ad82f36df47b4b1cb653a73da11a;hb=18f704edd0938355622049d853c1ce3cdfaee168;hp=5e56fc91e750ad4dccb75ea897b30c15dd8a8952;hpb=4d70603f96efaa82556ad5874dbc75f2a563b095;p=chaz%2Fopenbox diff --git a/util/epist/screen.cc b/util/epist/screen.cc index 5e56fc91..1705202b 100644 --- a/util/epist/screen.cc +++ b/util/epist/screen.cc @@ -515,7 +515,9 @@ const XWindow *screen::lastActiveWindow() const { WindowList::const_iterator it, end = _clients.end(); for (it = _clients.begin(); it != end; ++it) if ((*it)->getScreen() == this && ! (*it)->iconic() && - ((*it)->desktop() == 0xffffffff || (*it)->desktop() == _active_desktop)) + (*it)->canFocus() && + ((*it)->desktop() == 0xffffffff || + (*it)->desktop() == _active_desktop)) return *it; // no windows on this screen