From 746859c1017e9cdf73eb91470e795f0c4b98b21a Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 2 Feb 2008 11:22:17 -0500 Subject: if windows on screen are going to be moved, then do the ReplayPointer before that occurs, so it goes to the right window. if they are not, then just wait until after the actions are run (for kdesktop's sake really) --- openbox/actions.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'openbox/actions.h') diff --git a/openbox/actions.h b/openbox/actions.h index 477e4ba1..6db6f8d6 100644 --- a/openbox/actions.h +++ b/openbox/actions.h @@ -74,9 +74,16 @@ gboolean actions_act_is_interactive(ObActionsAct *act); void actions_act_ref(ObActionsAct *act); void actions_act_unref(ObActionsAct *act); -/*! Pass in a GSList of ObActionsAct's to be run. - @return TRUE if an action is in interactive state, FALSE is none are +/*! When this is true, an XAllowEvents with ReplayPointer will be called + if an action is going to maybe try moving windows around on screen (or + map/unmap windows) */ +void actions_set_need_pointer_replay_before_move(gboolean replay); +/*! Returns if a ReplayPointer is still needed. If it was called while running + actions then this will be false */ +gboolean actions_get_need_pointer_replay_before_move(); + +/*! Pass in a GSList of ObActionsAct's to be run. */ void actions_run_acts(GSList *acts, ObUserAction uact, guint state, -- cgit v1.2.3