diff options
author | wennmach <wennmach> | 2000-08-18 08:46:13 +0000 |
---|---|---|
committer | wennmach <wennmach> | 2000-08-18 08:46:13 +0000 |
commit | 71cb812648f7780e5318a1711574143b54d6ad4e (patch) | |
tree | def29db295e0413fedf998a2fc61ff2fa76bd3d1 /x11/xworld/patches | |
parent | 4c80bdac3fc63109c8983cb6deca164c198978fa (diff) | |
download | pkgsrc-71cb812648f7780e5318a1711574143b54d6ad4e.tar.gz |
Some window managers don't honour our X size hint for a square window geometry.
Don't exit in this case, select min(width, height) as size.
Diffstat (limited to 'x11/xworld/patches')
-rw-r--r-- | x11/xworld/patches/patch-ae | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/x11/xworld/patches/patch-ae b/x11/xworld/patches/patch-ae new file mode 100644 index 00000000000..e80e52c41d5 --- /dev/null +++ b/x11/xworld/patches/patch-ae @@ -0,0 +1,29 @@ +$NetBSD: patch-ae,v 1.1 2000/08/18 08:46:14 wennmach Exp $ + +Some window managers don't honour our X size hint for a square window geometry. +Don't exit in this case, select min(width, height) as size. + +--- xworld.c.orig Fri Aug 18 10:01:18 2000 ++++ xworld.c Fri Aug 18 10:01:23 2000 +@@ -63,6 +63,8 @@ + #define BORDER 5 + #define SLEEP 120 + ++#define MIN(x,y) (((x)<(y))?(x):(y)) ++ + char *MainTitle[] = {"Hello, world"}; + char *IconTitle[] = {"xworld"}; + +@@ -451,8 +453,12 @@ + ConfigureEvent = (XConfigureEvent *)&event; + size = ConfigureEvent->width; + if (ConfigureEvent->height != size) { ++#if 0 + fprintf(stderr, "xworld: error: width != height\n"); + exit(1); ++#else ++ size = MIN(size, ConfigureEvent->height); ++#endif + } + if (size != old_size) { + old_size = size; |