diff options
author | sabetts <sabetts> | 2006-03-16 01:41:13 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2006-03-16 01:41:13 +0000 |
commit | 4e1d3ffcec845b5618f6ac8a2b2c8ad40dadbceb (patch) | |
tree | 3bfca1227c7e1017504c1b4ac6f13832c1600764 /src/actions.c | |
parent | 2af887d39f6cba4cbbcaac8b51ffa773be809f23 (diff) | |
download | ratpoison-4e1d3ffcec845b5618f6ac8a2b2c8ad40dadbceb.zip |
2006-03-15 Bernhard R. Link <brlink@debian.org>
* src/screen.c (screen_update): new function
(init_screen): listen for screen resizes
* src/screen.h: new prototype
* src/events.c (configure_notify): new function
(delegate_event): call configure_notify for ConfigureNotify events
* src/frame.c (frame_dump): remember the size of the screen the
frame coordinates are relative to.
(frame_restore): adopt coordinates to possible screen resizes.
* src/frame.h (frame_fump): take a screen argument
(frame_read): likewise
* src/actions.c (cmd_tmpwm): listen for screen resizes again
(fdump, frestore, cmd_fdump): supply screen to frame_dump, frameread
Diffstat (limited to 'src/actions.c')
-rw-r--r-- | src/actions.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/actions.c b/src/actions.c index 4586e25..666bfb5 100644 --- a/src/actions.c +++ b/src/actions.c @@ -4278,7 +4278,8 @@ cmd_tmpwm (int interactive, struct cmdarg **args) { XSelectInput(dpy, RootWindow (dpy, screens[i].screen_num), PropertyChangeMask | ColormapChangeMask - | SubstructureRedirectMask | SubstructureNotifyMask); + | SubstructureRedirectMask | SubstructureNotifyMask + | StructureNotifyMask); /* Map its key window */ XMapWindow (dpy, screens[i].key_window); } @@ -4329,7 +4330,7 @@ fdump (rp_screen *screen) { char *tmp; - tmp = frame_dump (cur); + tmp = frame_dump (cur, screen); sbuf_concat (s, tmp); sbuf_concat (s, ","); free (tmp); @@ -4391,7 +4392,7 @@ frestore (char *data, rp_screen *s) /* Build the new frame set. */ while (token != NULL) { - new = frame_read (token); + new = frame_read (token, s); if (new == NULL) { free (dup); @@ -4918,7 +4919,7 @@ cmd_sfdump (int interactively, struct cmdarg **args) { char *tmp; - tmp = frame_dump (cur); + tmp = frame_dump (cur, &screens[i]); sbuf_concat (s, tmp); sbuf_concat (s, tmp2); free (tmp); |