From abc4b2e2859ec500026988d179911cc4a0278ef0 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Sun, 8 Apr 2012 14:07:38 -0400 Subject: [PATCH] Add ScreenChange event. --- cmd/wmii.sh.sh | 2 +- cmd/wmii/main.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/wmii.sh.sh b/cmd/wmii.sh.sh index 1a7394f5..08289765 100755 --- a/cmd/wmii.sh.sh +++ b/cmd/wmii.sh.sh @@ -210,7 +210,7 @@ wi_eventloop() { event=$1; shift [ "$event" = Start -a "$1" = "$wmiiscript" ] && exit - ( Event $event "$@" ) + Event $event "$@" done true } diff --git a/cmd/wmii/main.c b/cmd/wmii/main.c index e724b45d..53529577 100644 --- a/cmd/wmii/main.c +++ b/cmd/wmii/main.c @@ -215,6 +215,8 @@ init_screens(void) { screen = screens[0]; if(selview) view_update(selview); + + event("ScreenChange %d %d\n", n, nscreens); } static void