summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKean Johnson <kean@armory.com>2005-06-10 06:54:08 +0000
committerKean Johnson <kean@armory.com>2005-06-10 06:54:08 +0000
commitb2d6fb31352701a4156b8d97334c1c279b37f16e (patch)
tree5f779b49dde1969585195d275889cf54686ee233
parent6a904d00db84e235ea2b0073fbcd078f8a96c9c2 (diff)
SCO port update for SCO OpenServer 5 and UnixWare 7. A few general cleanupssco_port_update
and bugs not specifically related to the port fixed along the way.
-rw-r--r--ico.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ico.c b/ico.c
index 5bcf1c4..e0f690d 100644
--- a/ico.c
+++ b/ico.c
@@ -227,6 +227,7 @@ const char *ico_geom = NULL; /* -size: size of object in window */
const char *delta_geom = NULL; /* -delta: amount by which to move object */
Polyinfo *poly; /* -obj: the poly to draw */
int dsync = 0; /* -dsync */
+int xsync = 0; /* -sync */
int msleepcount = 0; /* -sleep value in milliseconds*/
#ifdef MULTITHREAD
int thread_count;
@@ -1259,7 +1260,7 @@ int main(argc, argv)
} else if (!strcmp(*argv, "-dsync"))
dsync = 1;
else if (!strncmp(*argv, "-sync", 5))
- _Xdebug = 1;
+ xsync = 1;
else if (!strcmp(*argv, "-objhelp")) {
giveObjHelp();
exit(1);
@@ -1284,6 +1285,8 @@ int main(argc, argv)
if (!(dpy = XOpenDisplay(display)))
icoFatal("cannot open display \"%s\"", XDisplayName(display));
wm_delete_window = XInternAtom (dpy, "WM_DELETE_WINDOW", False);
+ if (xsync)
+ XSynchronize(dpy, True);
#ifdef MULTIBUFFER
if (multibufext && !XmbufQueryExtension (dpy, &mbevbase, &mberrbase)) {