- # these types of windows dont get focus from window enter events
- if data.action() == EventEnterWindow:
- if (type == OBClient_Type_Dock or \
- type == OBClient_Type_Desktop):
- return
+ # !normal windows dont get focus from window enter events
+ if data.action() == EventEnterWindow and not OBClient_normal(client):
+ return