From aaffa46c3bb46d00484d934fea40233ab689f916 Mon Sep 17 00:00:00 2001 From: sabetts Date: Thu, 11 Oct 2001 18:02:57 +0000 Subject: fixed a raise request rudeness malady --- src/events.c | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) (limited to 'src') diff --git a/src/events.c b/src/events.c index dfd4f0b..1421b2d 100644 --- a/src/events.c +++ b/src/events.c @@ -258,28 +258,24 @@ configure_request (XConfigureRequestEvent *e) { /* Depending on the rudeness level, actually map the window. */ - if (win->state == IconicState) + if ((rp_honour_transient_raise && win->transient) + || (rp_honour_normal_raise && !win->transient)) { - if ((rp_honour_transient_raise && win->transient) - || (rp_honour_normal_raise && !win->transient)) - { - set_active_window (win); - } - else - { - if (win->transient) - marked_message_printf (0, 0, MESSAGE_RAISE_TRANSIENT, - win->number, window_name (win)); - else - marked_message_printf (0, 0, MESSAGE_RAISE_WINDOW, - win->number, window_name (win)); - } + if (win->state == IconicState) + set_active_window (win); + else if (find_windows_frame (win)) + goto_window (win); } else { - if (find_windows_frame (win)) - goto_window (win); + if (win->transient) + marked_message_printf (0, 0, MESSAGE_RAISE_TRANSIENT, + win->number, window_name (win)); + else + marked_message_printf (0, 0, MESSAGE_RAISE_WINDOW, + win->number, window_name (win)); } + } PRINT_DEBUG("request CWStackMode %d\n", e->detail); -- cgit v1.2.3