dont move/resize desktop windows or dock windows
This commit is contained in:
parent
7bae794382
commit
ee1130f8ec
1 changed files with 12 additions and 0 deletions
|
@ -25,6 +25,12 @@ def move(data):
|
|||
client = Openbox_findClient(openbox, data.window())
|
||||
if not client: return
|
||||
|
||||
type = OBClient_type(client)
|
||||
# these types of windows dont get moved
|
||||
if type == OBClient_Type_Dock or \
|
||||
type == OBClient_Type_Desktop:
|
||||
return
|
||||
|
||||
dx = data.xroot() - data.pressx()
|
||||
dy = data.yroot() - data.pressy()
|
||||
OBClient_move(client, data.press_clientx() + dx, data.press_clienty() + dy)
|
||||
|
@ -35,6 +41,12 @@ def resize(data):
|
|||
client = Openbox_findClient(openbox, data.window())
|
||||
if not client: return
|
||||
|
||||
type = OBClient_type(client)
|
||||
# these types of windows dont get resized
|
||||
if type == OBClient_Type_Dock or \
|
||||
type == OBClient_Type_Desktop:
|
||||
return
|
||||
|
||||
px = data.pressx()
|
||||
py = data.pressy()
|
||||
dx = data.xroot() - px
|
||||
|
|
Loading…
Reference in a new issue