summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKean Johnson <kean@armory.com>2005-11-08 06:33:31 +0000
committerKean Johnson <kean@armory.com>2005-11-08 06:33:31 +0000
commit703edae088fb7bb409dbdb58d111ed9e4c31cf78 (patch)
treedb8586b90938dae7631176c897a6d5de453c58ad
parentfe9efd5cd0703005da9ceb55f59d376ba0b01226 (diff)
See ChangeLog entry 2005-11-07 for details.XORG-6_8_99_903XORG-6_8_99_902
-rw-r--r--ico.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ico.c b/ico.c
index dd82bd2..8b93b10 100644
--- a/ico.c
+++ b/ico.c
@@ -238,6 +238,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;
@@ -1268,7 +1269,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);
@@ -1293,6 +1294,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)) {