forked from old/legacy-imlib2
Map after resize to avoid initial placement silliness.
SVN revision: 34527
This commit is contained in:
parent
86ed6a65a3
commit
6ef5136bf9
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue