summaryrefslogtreecommitdiff
path: root/app/cwm/xevents.c
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2014-09-07 17:38:39 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2014-09-07 17:38:39 +0000
commit20216283cf4ecf8d22a8012f149374118137cdc3 (patch)
tree24cac0613e8a632887854be87e8301057fbbbafb /app/cwm/xevents.c
parent54fb5306cfeff5053aa6ae0e3932f39eca58ef29 (diff)
screen_fromroot -> screen_find
Diffstat (limited to 'app/cwm/xevents.c')
-rw-r--r--app/cwm/xevents.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/cwm/xevents.c b/app/cwm/xevents.c
index 8968f8372..ce2b4a646 100644
--- a/app/cwm/xevents.c
+++ b/app/cwm/xevents.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: xevents.c,v 1.112 2014/09/06 16:08:58 okan Exp $
+ * $OpenBSD: xevents.c,v 1.113 2014/09/07 17:38:38 okan Exp $
*/
/*
@@ -239,7 +239,7 @@ xev_handle_buttonpress(XEvent *ee)
if (e->window != e->root)
return;
cc = &fakecc;
- cc->sc = screen_fromroot(e->window);
+ cc->sc = screen_find(e->window);
}
(*mb->callback)(cc, &mb->argument);
@@ -289,7 +289,7 @@ xev_handle_keypress(XEvent *ee)
return;
} else {
cc = &fakecc;
- cc->sc = screen_fromroot(e->window);
+ cc->sc = screen_find(e->window);
}
(*kb->callback)(cc, &kb->argument);
@@ -306,7 +306,7 @@ xev_handle_keyrelease(XEvent *ee)
KeySym keysym;
unsigned int i;
- sc = screen_fromroot(e->root);
+ sc = screen_find(e->root);
keysym = XkbKeycodeToKeysym(X_Dpy, e->keycode, 0, 0);
for (i = 0; i < nitems(modkeys); i++) {
@@ -324,7 +324,7 @@ xev_handle_clientmessage(XEvent *ee)
struct client_ctx *cc, *old_cc;
struct screen_ctx *sc;
- sc = screen_fromroot(e->window);
+ sc = screen_find(e->window);
if ((cc = client_find(e->window)) == NULL && e->window != sc->rootwin)
return;