diff options
author | sabetts <sabetts> | 2001-02-28 05:15:04 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2001-02-28 05:15:04 +0000 |
commit | 0d8bccdf85cf8e55f8cc1246908a2df79abccec0 (patch) | |
tree | 329d6005c4604e47241b7b3d3baa1dcc413e0fa5 /src/main.c | |
parent | 754b72f96a7931913a1e281da3d92843843c7fb6 (diff) | |
download | ratpoison-0d8bccdf85cf8e55f8cc1246908a2df79abccec0.zip |
* main.c (handler): Prepends error message with "ERROR: ".
Displays error in message bar. Returns 0.
* events.c (destroy_window): sets rp_current_window to NULL when
there are no more mapped windows.
(destroy_window): calls set_current_window and find_window_other
directly instead of cmd_other.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -118,10 +118,15 @@ handler (Display *d, XErrorEvent *e) if (ignore_badwindow && e->error_code == BadWindow) return 0; - XGetErrorText (d, e->error_code, error_msg, sizeof (error_msg)); + strcpy (error_msg, "ERROR: "); + + XGetErrorText (d, e->error_code, error_msg + 7, sizeof (error_msg) - 7); fprintf (stderr, "ratpoison: %s!\n", error_msg); - exit (EXIT_FAILURE); + marked_message (error_msg, 0, strlen (error_msg)); + +/* exit (EXIT_FAILURE); */ + return 0; } void |