all repos — openbox @ a84666e955ecd0186fbff29aa87a8da9be598435

openbox fork - make it a bit more like ryudo

dont focus desktops and docks via enter events
Dana Jansens danakj@orodu.net
commit

a84666e955ecd0186fbff29aa87a8da9be598435

parent

8d5bd298540b98eb10072c5ee281c64f221ce9a6

1 files changed, 7 insertions(+), 0 deletions(-)

jump to
M scripts/builtins.pyscripts/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):