projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://www.jwz.org/xscreensaver/xscreensaver-5.12.tar.gz
[xscreensaver]
/
hacks
/
xscreensaver-sgigl.c
diff --git
a/hacks/xscreensaver-sgigl.c
b/hacks/xscreensaver-sgigl.c
index a4247784efec9973e8d6ce5f989de7a888fe5ffc..8d25ad14abf9b416522a5763ced6b33a9d41db9d 100644
(file)
--- a/
hacks/xscreensaver-sgigl.c
+++ b/
hacks/xscreensaver-sgigl.c
@@
-1,4
+1,4
@@
-/* xscreensaver, Copyright (c) 1997 Jamie Zawinski <jwz@jwz.org>
+/* xscreensaver, Copyright (c) 1997
, 2005
Jamie Zawinski <jwz@jwz.org>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
@@
-64,6
+64,7
@@
static char *progname;
#include <signal.h>
#include <sys/time.h>
#include <X11/Xlib.h>
#include <signal.h>
#include <sys/time.h>
#include <X11/Xlib.h>
+#include <X11/Xutil.h>
#include <X11/Xmu/Error.h>
#include "vroot.h"
#include <X11/Xmu/Error.h>
#include "vroot.h"
@@
-103,6
+104,8
@@
main(int ac, char **av)
char *n2 = 0;
Bool verbose = False;
Window root, vroot;
char *n2 = 0;
Bool verbose = False;
Window root, vroot;
+ XSizeHints h;
+ long ls;
progname = av[0];
progname = av[0];
@@
-205,6
+208,13
@@
main(int ac, char **av)
if (verbose)
fprintf(stderr, "%s: resizing 0x%x\n", progname, w);
if (verbose)
fprintf(stderr, "%s: resizing 0x%x\n", progname, w);
+ /* Make sure the window allows itself to be resized. */
+ XGetWMNormalHints (dpy, w, &h, &ls);
+ h.flags |= PMaxSize;
+ h.max_width = WidthOfScreen(screen)+128;
+ h.max_height = HeightOfScreen(screen)+128;
+ XSetWMNormalHints (dpy, w, &h);
+
XMoveResizeWindow(dpy, w, 0, 0,
WidthOfScreen(screen),
HeightOfScreen(screen));
XMoveResizeWindow(dpy, w, 0, 0,
WidthOfScreen(screen),
HeightOfScreen(screen));