]> Dogcows Code - chaz/openbox/commitdiff
better logic when changing a window's decoration level, for choosing what elements...
authorDana Jansens <danakj@orodu.net>
Mon, 29 Apr 2002 07:31:44 +0000 (07:31 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 29 Apr 2002 07:31:44 +0000 (07:31 +0000)
src/Window.cc

index 33ea5c26c011a519db0636415944603a114d8d13..4ced0046f8e90b2023232c689fb3148dea238aad 100644 (file)
@@ -3091,21 +3091,25 @@ void OpenboxWindow::changeOpenboxHints(OpenboxHints *net) {
 
     default:
     case DecorNormal:
-      decorations.titlebar = decorations.border = decorations.handle =
-       decorations.iconify = decorations.maximize = decorations.menu = True;
+      decorations.titlebar = decorations.iconify = decorations.menu =
+        decorations.border = True;
+      decorations.handle = (functions.resize && !flags.transient);
+      decorations.maximize = functions.maximize;
 
       break;
 
     case DecorTiny:
       decorations.titlebar = decorations.iconify = decorations.menu = True;
-      decorations.border = decorations.handle = decorations.maximize = False;
+      decorations.border = decorations.border = decorations.handle = False;
+      decorations.maximize = functions.maximize;
+
       break;
 
     case DecorTool:
-      decorations.titlebar = decorations.menu = functions.move = True;
-      decorations.iconify = decorations.border = decorations.handle =
-       decorations.maximize = False;
+      decorations.titlebar = decorations.menu = True;
+      decorations.iconify = decorations.border = False;
+      decorations.handle = (functions.resize && !flags.transient);
+      decorations.maximize = functions.maximize;
 
       break;
     }
This page took 0.024706 seconds and 4 git commands to generate.