summaryrefslogtreecommitdiff
path: root/src/data.h
diff options
context:
space:
mode:
authorsabetts <sabetts>2006-02-26 23:20:07 +0000
committersabetts <sabetts>2006-02-26 23:20:07 +0000
commit50171e15dbe6a51464059ad820f5a0464f3d60fa (patch)
treebd8909431b6f2884319f8821bac6bf38d7dad1e4 /src/data.h
parent23b3dd1114f608ffbef9d18b582e28e39fdce7f5 (diff)
downloadratpoison-50171e15dbe6a51464059ad820f5a0464f3d60fa.zip
* src/window.c (add_to_window_list): only change the window's
group and frame if window_mapped is 0. * src/data.h (struct rp_child_info): new field window_mapped * src/actions.c (spawn): init window_mapped field in child_info.
Diffstat (limited to 'src/data.h')
-rw-r--r--src/data.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/data.h b/src/data.h
index 638697b..f2ca8eb 100644
--- a/src/data.h
+++ b/src/data.h
@@ -270,6 +270,11 @@ struct rp_child_info
rp_frame *frame;
rp_screen *screen;
+ /* Non-zero when the pid has mapped a window. This is to prevent
+ every window the program opens from getting mapped in the frame
+ it was launched from. Only the first window should do this. */
+ int window_mapped;
+
/* This structure can exist in a list. */
struct list_head node;
};