]> Dogcows Code - chaz/openbox/commitdiff
fullscreen overrides aspect hints (because i say so)
authorMikael Magnusson <mikachu@comhem.se>
Sat, 20 Mar 2004 21:38:04 +0000 (21:38 +0000)
committerMikael Magnusson <mikachu@comhem.se>
Sat, 20 Mar 2004 21:38:04 +0000 (21:38 +0000)
openbox/client.c

index c44700e76744275af6e11daa588ed17f2c29b3e6..a569087793c7c57830a56e982c415175032dc542 100644 (file)
@@ -2059,26 +2059,28 @@ void client_configure_full(ObClient *self, ObCorner anchor,
         w -= self->base_size.width;
         h -= self->base_size.height;
 
-        if (self->min_ratio)
-            if (h * self->min_ratio > w) {
-                h = (gint)(w / self->min_ratio);
-
-                /* you cannot resize to nothing */
-                if (h < 1) {
-                    h = 1;
-                    w = (gint)(h * self->min_ratio);
+        if (!self->fullscreen) {
+            if (self->min_ratio)
+                if (h * self->min_ratio > w) {
+                    h = (gint)(w / self->min_ratio);
+
+                    /* you cannot resize to nothing */
+                    if (h < 1) {
+                        h = 1;
+                        w = (gint)(h * self->min_ratio);
+                    }
                 }
-            }
-        if (self->max_ratio)
-            if (h * self->max_ratio < w) {
-                h = (gint)(w / self->max_ratio);
-
-                /* you cannot resize to nothing */
-                if (h < 1) {
-                    h = 1;
-                    w = (gint)(h * self->min_ratio);
+            if (self->max_ratio)
+                if (h * self->max_ratio < w) {
+                    h = (gint)(w / self->max_ratio);
+
+                    /* you cannot resize to nothing */
+                    if (h < 1) {
+                        h = 1;
+                        w = (gint)(h * self->min_ratio);
+                    }
                 }
-            }
+        }
 
         w += self->base_size.width;
         h += self->base_size.height;
This page took 0.027785 seconds and 4 git commands to generate.