]> icculus.org git repositories - dana/openbox.git/commit
if no launch time is provided for an application, make one up.
authorDana Jansens <danakj@orodu.net>
Fri, 15 Oct 2010 19:06:16 +0000 (15:06 -0400)
committerDana Jansens <danakj@orodu.net>
Mon, 24 Jan 2011 19:19:23 +0000 (14:19 -0500)
commitc5c34cca1c9b57424fa7ca686995126f627903ab
tree5b8a6593a9e14bf8a787104e0ee5fe6d5043aa6e
parent5e38690d65459262e028cdbcddf8a1417287f156
if no launch time is provided for an application, make one up.

if the window is related to other existing windows
  and one of those windows was the last used
    then we will give it a launch time equal to the last user time,
    which will end up giving the window focus probably.
  else
    the window is related to other windows, but you are not working in them?
    seems suspicious, so we will give it a launch time of NOW - STEAL_INTERVAL,
    so it will be given focus only if we didn't use something else during the
    steal interval.
else
  the window is all on its own, so we can't judge it.  give it a launch time
  equal to the last user time, so it will probably take focus.

this way running things from a terminal will give them focus, but popups
without a launch time shouldn't steal focus so easily.
openbox/client.c
openbox/client.h
openbox/event.c
openbox/event.h
openbox/focus.c