summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsabetts <sabetts>2006-04-20 02:16:09 +0000
committersabetts <sabetts>2006-04-20 02:16:09 +0000
commitfc0a1e5e68121502a02d556e90fe1ceb570e3493 (patch)
treefa076b1676d69f678dd0c6d79f30ff574446cf0f /src
parentb7bb91712d275065bb4b2440fd0867d9299da94c (diff)
downloadratpoison-fc0a1e5e68121502a02d556e90fe1ceb570e3493.zip
(property_notify): Only map the first window in the launch frame.
Diffstat (limited to 'src')
-rw-r--r--src/events.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/events.c b/src/events.c
index 9ea61a0..2ef2512 100644
--- a/src/events.c
+++ b/src/events.c
@@ -605,12 +605,14 @@ property_notify (XEvent *ev)
PRINT_DEBUG (("updating _NET_WM_PID\n"));
child_info = get_child_info(win->w);
- if (child_info)
+ if (child_info && !child_info->window_mapped)
{
if (child_info->frame)
{
PRINT_DEBUG (("frame=%p\n", child_info->frame));
win->intended_frame_number = child_info->frame->number;
+ /* Only map the first window in the launch frame. */
+ child_info->window_mapped = 1;
}
/* TODO: also adopt group information? */
}