summaryrefslogtreecommitdiff
path: root/src/data.h
diff options
context:
space:
mode:
authorsabetts <sabetts>2001-02-10 22:56:13 +0000
committersabetts <sabetts>2001-02-10 22:56:13 +0000
commit292f4c8f9dd645563b79a44ee966245152f1b23a (patch)
tree009aec39a46cc924eb30700cb820a27c05741d13 /src/data.h
parenta19de59482fa3e52b59fbe96a37feb7056117581 (diff)
downloadratpoison-292f4c8f9dd645563b79a44ee966245152f1b23a.zip
* communications.c (send_restart, send_kill): Added
* ratpoison.h: includes communications.h * main.c (send_restart, send_kill): Moved to communications.c * list.c (get_mouse_root_position): Added (add_to_window_list): Initialize new rp_window fields (save_mouse_position): Added (set_active_window): Added code to save and restore the position of the mouse * events.c (property_notify): Added code to listen for a WM_TRANSIENT_FOR property change. * data.h (struct rp_window): Added transient, transient_for, mouse_x, mouse_y. * actions.c (maximize_transient): Added (maximize): Added code to handle transient windows differently * Makefile.am (ratpoison_SOURCES): Added communications.h and communications.c
Diffstat (limited to 'src/data.h')
-rw-r--r--src/data.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/data.h b/src/data.h
index a6ddd39..bb132f2 100644
--- a/src/data.h
+++ b/src/data.h
@@ -53,6 +53,13 @@ struct rp_window
/* Colormap */
Colormap colormap;
+ /* Is this a transient window? */
+ int transient;
+ Window transient_for;
+
+ /* Saved mouse position */
+ int mouse_x, mouse_y;
+
rp_window *next, *prev;
};