From: Dana Jansens Date: Sat, 4 Jan 2003 02:29:40 +0000 (+0000) Subject: dont focus desktops and docks via enter events X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=a84666e955ecd0186fbff29aa87a8da9be598435;p=chaz%2Fopenbox dont focus desktops and docks via enter events --- diff --git a/scripts/builtins.py b/scripts/builtins.py index 3fdd3ae0..46e7d28e 100644 --- a/scripts/builtins.py +++ b/scripts/builtins.py @@ -11,6 +11,13 @@ def focus(data): """Focuses the window on which the event occured""" client = Openbox_findClient(openbox, data.window()) if not client: return + type = OBClient_type(client) + # these types of windows dont get focus from window enter events + if data.action() == EventEnterWindow: + print "enter window" + if (type == OBClient_Type_Dock or \ + type == OBClient_Type_Desktop): + return OBClient_focus(client) def move(data):