summaryrefslogtreecommitdiff
path: root/manage.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2000-08-31 02:38:10 +0000
committersabetts <sabetts>2000-08-31 02:38:10 +0000
commitb86e0c298d6881fe1a79ab4bb592aefb47147817 (patch)
tree82154a33d2be3b801c7ae9d4443fc5480ef9a6f0 /manage.c
parent51b0db69e403175301fc381dbad55357c1ca4622 (diff)
downloadratpoison-b86e0c298d6881fe1a79ab4bb592aefb47147817.zip
Added an input_window to allow the user to type data. This is used to
jump to a window by name. Added functionality to jump to a window by name.
Diffstat (limited to 'manage.c')
-rw-r--r--manage.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/manage.c b/manage.c
index 8a96a06..6c4881d 100644
--- a/manage.c
+++ b/manage.c
@@ -57,6 +57,8 @@ grab_keys (screen_info *s)
GrabModeAsync, GrabModeAsync);
XGrabKey(dpy, XKeysymToKeycode (dpy, KEY_PREFIX ), AnyModifier, s->key_window, True,
GrabModeAsync, GrabModeAsync);
+ XGrabKey(dpy, XKeysymToKeycode (dpy, KEY_WINBYNAME ), AnyModifier, s->key_window, True,
+ GrabModeAsync, GrabModeAsync);
}
static void
@@ -163,9 +165,8 @@ scanwins(screen_info *s)
for (i = 0; i < nwins; i++)
{
XGetWindowAttributes(dpy, wins[i], &attr);
- if (wins[i] == s->bar_window || wins[i] == s->key_window) continue;
+ if (wins[i] == s->bar_window || wins[i] == s->key_window || wins[i] == s->input_window) continue;
-
if (attr.override_redirect != True)
{
win = add_to_window_list (s, wins[i]);