]> Dogcows Code - chaz/openbox/commitdiff
dont move/resize desktop windows or dock windows
authorDana Jansens <danakj@orodu.net>
Sat, 4 Jan 2003 08:06:48 +0000 (08:06 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 4 Jan 2003 08:06:48 +0000 (08:06 +0000)
scripts/builtins.py

index 5427773211731bc27566b3689e6bf29f950ab5b9..3b91248c57768f30b8d00d4f36b4e252c6db35f1 100644 (file)
@@ -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
This page took 0.023404 seconds and 4 git commands to generate.