summaryrefslogtreecommitdiff
path: root/src/events.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2003-02-24 07:44:20 +0000
committersabetts <sabetts>2003-02-24 07:44:20 +0000
commit74feea3aa793b13a3582fc25329701a45de01b64 (patch)
tree62791cbc8dfa5407ea5aa7e7492de4b515b89649 /src/events.c
parent49ca20c9fc7807d612ef9925c110e8da6c3c1a8f (diff)
downloadratpoison-74feea3aa793b13a3582fc25329701a45de01b64.zip
* src/split.h (cleanup_frame): new protoype
* src/manage.c (scanwins): added better debugging output * src/events.c (cleanup_frame): move to split.c (handle_key): ungrab the rat right after we read the key. * src/actions.h (cmd_tmpwm): new prototype. * src/actions.c (spawn): return the pid of the child process. prototype updated. (cmd_tmpwm): new function (user_commands): new command, tmp_wm.
Diffstat (limited to 'src/events.c')
-rw-r--r--src/events.c36
1 files changed, 3 insertions, 33 deletions
diff --git a/src/events.c b/src/events.c
index 51f31d7..c66c938 100644
--- a/src/events.c
+++ b/src/events.c
@@ -65,36 +65,6 @@ new_window (XCreateWindowEvent *e)
}
}
-static void
-cleanup_frame (rp_window_frame *frame)
-{
- rp_window *last_win;
- rp_window *win;
-
- win = find_window_other ();
- if (win == NULL)
- {
- set_frames_window (frame, NULL);
- return;
- }
-
- last_win = set_frames_window (frame, win);
-
- maximize (win);
- unhide_window (win);
-
-
-#ifdef MAXSIZE_WINDOWS_ARE_TRANSIENTS
- if (!win->transient
- && !(win->hints->flags & PMaxSize
- && win->hints->max_width < win->scr->root_attr.width
- && win->hints->max_height < win->scr->root_attr.height))
-#else
- if (!win->transient)
-#endif
- hide_others (win);
-}
-
static void
unmap_notify (XEvent *ev)
{
@@ -406,7 +376,10 @@ handle_key (screen_info *s)
}
read_key (&keysym, &mod, NULL, 0);
+
XSetInputFocus (dpy, fwin, revert, CurrentTime);
+ if (rat_grabbed)
+ ungrab_rat();
if ((key_action = find_keybinding (keysym, x11_mask_to_rp_mask (mod))))
{
@@ -424,9 +397,6 @@ handle_key (screen_info *s)
marked_message_printf (0, 0, " %s unbound key ", keysym_name);
free (keysym_name);
}
-
- if (rat_grabbed)
- ungrab_rat();
}
static void