summaryrefslogtreecommitdiff
path: root/scripts/builtins.py
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-04 08:06:48 +0000
committerDana Jansens <danakj@orodu.net>2003-01-04 08:06:48 +0000
commitee1130f8ecd9ddc94eca535fa129809d840b8219 (patch)
tree68b5fc12094d4839cf69ea3402fde3abea1859cc /scripts/builtins.py
parent7bae794382c7a64a6427b16d1339b98120a5166f (diff)
dont move/resize desktop windows or dock windows
Diffstat (limited to 'scripts/builtins.py')
-rw-r--r--scripts/builtins.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/builtins.py b/scripts/builtins.py
index 54277732..3b91248c 100644
--- a/scripts/builtins.py
+++ b/scripts/builtins.py
@@ -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