From e15c1c03df8ac8f172c41ed65968fbcd180fdd93 Mon Sep 17 00:00:00 2001 From: Rui Guo Date: Wed, 24 Jun 2009 21:13:13 +0800 Subject: [PATCH] Document the newly introduced window events. --- src/drafts/scripting | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/src/drafts/scripting b/src/drafts/scripting index 468a6c5..871e1b9 100644 --- a/src/drafts/scripting +++ b/src/drafts/scripting @@ -213,10 +213,28 @@ Events ---------- on_activity -on_silence -before_winchange -on_winchange -before_resize +on_silence (window) + triggered when the silence monitor got fired. + +on_focus (display, window) + Triggered when the window gets input focus on a display. + Differs from the global event forechange, it's associated with a specific + window. + +on_leave (display, window) + Triggered after the window lost input focus on a display. + Differs from the global event forechange, it's associated with a specific + window. + +on_show (display, window) + Triggered after the first view of this window show up on a display. + Differs from on_focus when there are many regions on a display. + +on_hide (display, window) + Triggered after the last view of this window disappeared from a display. + Differs from on_leave when there are many regions on a display. + +can_resize on_resize C. User -- 2.11.4.GIT