summaryrefslogtreecommitdiff
path: root/lightpipe.c
diff options
context:
space:
mode:
Diffstat (limited to 'lightpipe.c')
-rw-r--r--lightpipe.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/lightpipe.c b/lightpipe.c
index 38b8190..3dfc74c 100644
--- a/lightpipe.c
+++ b/lightpipe.c
@@ -33,12 +33,12 @@ int
main (int argc, char **argv)
{
Display *display;
- Display *new_display;
+ Display *new_display = 0;
Window window;
Window new = 0;
- int new_width, new_height;
+ int new_width = 0, new_height = 0;
XLightPipeWindow *lpw;
- GC new_gc;
+ GC new_gc = 0;
if (argc != 4)
{
@@ -99,8 +99,6 @@ main (int argc, char **argv)
new_height = lpw->geometry.height;
XResizeWindow (new_display, new, new_width, new_height);
}
- printf ("%dx%d+%d+%d\n",
- lpw->damage.width, lpw->damage.height, lpw->damage.x, lpw->damage.y);
XPutImage (new_display, new, new_gc, lpw->image,
lpw->damage.x, lpw->damage.y,
lpw->damage.x, lpw->damage.y,
@@ -108,6 +106,7 @@ main (int argc, char **argv)
lpw->damage.height);
XFlush (new_display);
XLightPipeRelease (display, lpw);
+ XFlush (display);
}
return 0;
}