]> Dogcows Code - chaz/openbox/blobdiff - src/client.cc
move windows based on their *frame* not the client
[chaz/openbox] / src / client.cc
index e0d68db406749b245a435439429a3e25e40ffd7d..f60a8da62e33882c38631cd62f3d9751ae5f6e0f 100644 (file)
@@ -1284,6 +1284,22 @@ void Client::changeAllowedActions(void)
 }
 
 
+void Client::remaximize()
+{
+  int dir;
+  if (_max_horz && _max_vert)
+    dir = 0;
+  else if (_max_horz)
+    dir = 1;
+  else if (_max_vert)
+    dir = 2;
+  else
+    return; // not maximized
+  _max_horz = _max_vert = false;
+  maximize(true, dir, false);
+}
+
+
 void Client::applyStartupState()
 {
   // these are in a carefully crafted order..
This page took 0.021137 seconds and 4 git commands to generate.