diff options
author | sabetts <sabetts> | 2002-02-08 02:45:59 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2002-02-08 02:45:59 +0000 |
commit | 70cf82da23418e4d1467d9c058eb1c1afc1d420e (patch) | |
tree | 415c04ff18a021461d862ec7de81c9cd24d4d020 /src/events.c | |
parent | c7f67d38459b0951e7124238053e4724146e7e74 (diff) | |
download | ratpoison-70cf82da23418e4d1467d9c058eb1c1afc1d420e.zip |
* src/split.h (find_last_frame): prototype now correctly reflects
the actual function.
* src/events.c (configure_notify): ignore substructurenotify
events. Add more debugging statements.
* src/actions.c (cmd_focuslast): pass the current screen to the
call to find_last_frame.
Diffstat (limited to 'src/events.c')
-rw-r--r-- | src/events.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/events.c b/src/events.c index bf47e7c..6151db0 100644 --- a/src/events.c +++ b/src/events.c @@ -220,8 +220,14 @@ configure_notify (XConfigureEvent *e) { rp_window *win; + /* ignore SubstructureNotify ConfigureNotify events. */ + if(e->event != e->window && e->send_event != True) + return; + win = find_window (e->window); + PRINT_DEBUG("event=%ld window=%ld\n", e->event, e->window); + if (win && win->state == NormalState) { if (win->height != e->height @@ -237,6 +243,9 @@ configure_notify (XConfigureEvent *e) know the real size of the window to increment properly. So, update the structure before calling maximize. */ + PRINT_DEBUG ("x=%d y=%d width=%d height=%d\n", e->x, e->y, e->width, e->height); + PRINT_DEBUG ("x=%d y=%d width=%d height=%d\n", win->x, win->y, win->width, win->height); + win->x = e->x; win->y = e->y; win->width = e->width; |