summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrhp <rhp>2001-07-03 18:37:18 +0000
committerrhp <rhp>2001-07-03 18:37:18 +0000
commit3650c23055d613c7660b64f60f841f2649c5fa3a (patch)
treedbe251f151ffb1a85bfbec2549eb701ff1a8f7c9
parent7d79a37c9de437acd06d19ca97c57acdb8e8c31f (diff)
downloadmetacity-3650c23055d613c7660b64f60f841f2649c5fa3a.tar.gz
...
-rw-r--r--src/place.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/place.c b/src/place.c
index 6dce2693..9b238e6b 100644
--- a/src/place.c
+++ b/src/place.c
@@ -116,8 +116,16 @@ find_next_cascade (MetaWindow *window,
/* arbitrary-ish threshold, honors user attempts to
* manually cascade.
*/
- x_threshold = MAX (fgeom->left_width, 10);
- y_threshold = MAX (fgeom->top_height, 10);
+ if (fgeom)
+ {
+ x_threshold = MAX (fgeom->left_width, 10);
+ y_threshold = MAX (fgeom->top_height, 10);
+ }
+ else
+ {
+ x_threshold = 10;
+ y_threshold = 10;
+ }
tmp = sorted;
while (tmp != NULL)