summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsabetts <sabetts>2001-10-11 18:02:57 +0000
committersabetts <sabetts>2001-10-11 18:02:57 +0000
commitaaffa46c3bb46d00484d934fea40233ab689f916 (patch)
treea233f4d7e8e58bc65396fb556e6cf738c8b97821 /src
parenta3b74d6958b354593c73a601e014738c0de3e4a8 (diff)
downloadratpoison-aaffa46c3bb46d00484d934fea40233ab689f916.zip
fixed a raise request rudeness malady
Diffstat (limited to 'src')
-rw-r--r--src/events.c30
1 files changed, 13 insertions, 17 deletions
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);