summaryrefslogtreecommitdiff
path: root/app/cwm/calmwm.h
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2008-03-26 15:45:43 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2008-03-26 15:45:43 +0000
commitd3d2132216a1ffa6e540438c3730b39e100fdbf8 (patch)
treea05b39caac50763e4abdd72779b3d51f894d26e6 /app/cwm/calmwm.h
parent31f79277013f1f8ab42c0597b11542bbcad9e768 (diff)
Fix a couple of issues with the maximization code.
If a window is vertically maximized, then resized, before the MAXIMIZED flag wasn't removed, now it is. so doing a resize then does the right thing. Also, separate flags are needed for vertical and normal maximziation, else when you do vertical-maximize, followed by maximize, the window returns to it's original size. ok simon@, okan@
Diffstat (limited to 'app/cwm/calmwm.h')
-rw-r--r--app/cwm/calmwm.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/app/cwm/calmwm.h b/app/cwm/calmwm.h
index 024cabe17..32b4b9305 100644
--- a/app/cwm/calmwm.h
+++ b/app/cwm/calmwm.h
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: calmwm.h,v 1.25 2008/03/23 15:09:21 simon Exp $
+ * $Id: calmwm.h,v 1.26 2008/03/26 15:45:42 oga Exp $
*/
#ifndef _CALMWM_H_
@@ -95,18 +95,20 @@ struct screen_ctx {
TAILQ_HEAD(screen_ctx_q, screen_ctx);
-#define CLIENT_PROTO_DELETE 0x01
-#define CLIENT_PROTO_TAKEFOCUS 0x02
+#define CLIENT_PROTO_DELETE 0x01
+#define CLIENT_PROTO_TAKEFOCUS 0x02
-#define CLIENT_MAXNAMEQLEN 5
+#define CLIENT_MAXNAMEQLEN 5
-#define CLIENT_HIDDEN 0x01
-#define CLIENT_IGNORE 0x02
-#define CLIENT_INQUEUE 0x04 /* tmp used by search code */
-#define CLIENT_MAXIMIZED 0x08
+#define CLIENT_HIDDEN 0x01
+#define CLIENT_IGNORE 0x02
+#define CLIENT_DOMAXIMIZE 0x04
+#define CLIENT_MAXIMIZED 0x08
+#define CLIENT_DOVMAXIMIZE 0x10
+#define CLIENT_VMAXIMIZED 0x20
-#define CLIENT_HIGHLIGHT_BLUE 1
-#define CLIENT_HIGHLIGHT_RED 2
+#define CLIENT_HIGHLIGHT_BLUE 1
+#define CLIENT_HIGHLIGHT_RED 2
struct winname {