From a84666e955ecd0186fbff29aa87a8da9be598435 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 4 Jan 2003 02:29:40 +0000 Subject: [PATCH] dont focus desktops and docks via enter events --- scripts/builtins.py | 7 +++++++ 1 file changed, 7 insertions(+) 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): -- 2.39.2