dont focus desktops and docks via enter events
This commit is contained in:
parent
8d5bd29854
commit
a84666e955
1 changed files with 7 additions and 0 deletions
|
@ -11,6 +11,13 @@ def focus(data):
|
||||||
"""Focuses the window on which the event occured"""
|
"""Focuses the window on which the event occured"""
|
||||||
client = Openbox_findClient(openbox, data.window())
|
client = Openbox_findClient(openbox, data.window())
|
||||||
if not client: return
|
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)
|
OBClient_focus(client)
|
||||||
|
|
||||||
def move(data):
|
def move(data):
|
||||||
|
|
Loading…
Reference in a new issue