screen_fromroot -> screen_find

This commit is contained in:
okan
2014-09-07 17:38:38 +00:00
parent 78e0f21225
commit be091b3523
4 changed files with 8 additions and 8 deletions

View File

@@ -79,12 +79,12 @@ screen_init(int which)
}
struct screen_ctx *
screen_fromroot(Window rootwin)
screen_find(Window win)
{
struct screen_ctx *sc;
TAILQ_FOREACH(sc, &Screenq, entry)
if (sc->rootwin == rootwin)
if (sc->rootwin == win)
return (sc);
/* XXX FAIL HERE */