diff options
author | sabetts <sabetts> | 2002-01-02 13:13:17 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2002-01-02 13:13:17 +0000 |
commit | 5658648524238b6c0db5bf763fdd4814492b49dd (patch) | |
tree | b067766fd95ae95750c950d120542846667538f9 /src/main.c | |
parent | d2de091a0450b16a51d4be53928a7617961a9850 (diff) | |
download | ratpoison-5658648524238b6c0db5bf763fdd4814492b49dd.zip |
* src/main.c (init_screen): do not select on any events for the
bar_window and the frame_window.
* src/events.h (listen_for_events): new prototype
* src/events.c (configure_notify): If the event dimensions don't
match the windows, then re-maximize the window.
(configure_request): always grant the requests.
(delegate_event): Changes to the debugging output.
(delegate_event): Don't print debugging messages for events that
ratpoison doesn't need to handle.
(handle_signals): new function
(listen_for_events): new function
(handle_events): remove function. Dependant code uses
listen_for_events.
(get_event): likewise
* src/main.c (clean_up): don't map iconized windows.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -558,7 +558,7 @@ main (int argc, char *argv[]) XSetInputFocus (dpy, current_screen()->key_window, RevertToPointerRoot, CurrentTime); - handle_events (); + listen_for_events (); return EXIT_SUCCESS; } @@ -620,7 +620,6 @@ init_screen (screen_info *s, int screen_num) s->bar_is_raised = 0; s->bar_window = XCreateSimpleWindow (dpy, s->root, 0, 0, 1, 1, 1, s->fg_color, s->bg_color); - XSelectInput (dpy, s->bar_window, StructureNotifyMask); /* Setup the window that will recieve all keystrokes once the prefix key has been pressed. */ @@ -636,7 +635,6 @@ init_screen (screen_info *s, int screen_num) /* Create the frame indicator window */ s->frame_window = XCreateSimpleWindow (dpy, s->root, 1, 1, 1, 1, 1, s->fg_color, s->bg_color); - XSelectInput (dpy, s->frame_window, KeyPressMask ); /* Create the help window */ s->help_window = XCreateSimpleWindow (dpy, s->root, 0, 0, s->root_attr.width, |