Map after resize to avoid initial placement silliness.

SVN revision: 34527
This commit is contained in:
Kim Woelders 2008-05-10 20:27:28 +00:00
parent 86ed6a65a3
commit 6ef5136bf9
3 changed files with 7 additions and 4 deletions

View File

@ -61,7 +61,6 @@ main(int argc, char **argv)
XSelectInput(disp, win,
ButtonPressMask | ButtonReleaseMask | ButtonMotionMask |
PointerMotionMask | ExposureMask);
XMapWindow(disp, win);
/**
* Start rendering
@ -81,9 +80,11 @@ main(int argc, char **argv)
imlib_context_set_image(im_bg);
w = imlib_image_get_width();
h = imlib_image_get_height();
printf("Resizing Window to %d by %d\n", w, h);
XResizeWindow(disp, win, w, h);
XMapWindow(disp, win);
XSync(disp, False);
x = -9999;
y = -9999;
while (1)

View File

@ -51,7 +51,6 @@ main(int argc, char **argv)
XSelectInput(disp, win,
ButtonPressMask | ButtonReleaseMask | ButtonMotionMask |
PointerMotionMask | ExposureMask | KeyPressMask);
XMapWindow(disp, win);
/**
* Start rendering
@ -72,7 +71,9 @@ main(int argc, char **argv)
h = imlib_image_get_height();
imlib_context_set_color(128, 128, 255, 255);
imlib_image_fill_rectangle(0, 0, w, h);
XResizeWindow(disp, win, w, h);
XMapWindow(disp, win);
XSync(disp, False);
while (1)

View File

@ -50,7 +50,6 @@ main(int argc, char **argv)
XSelectInput(disp, win,
ButtonPressMask | ButtonReleaseMask | ButtonMotionMask |
PointerMotionMask | ExposureMask | KeyPressMask);
XMapWindow(disp, win);
/**
* Start rendering
@ -69,7 +68,9 @@ main(int argc, char **argv)
h = imlib_image_get_height();
imlib_context_set_color(0, 0, 0, 255);
imlib_image_fill_rectangle(0, 0, w, h);
XResizeWindow(disp, win, w, h);
XMapWindow(disp, win);
XSync(disp, False);
poly = imlib_polygon_new();