changed gui code a little so that windows don't popup in funny

places when used with the cygwin X windows system.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402447
This commit is contained in:
Davis King 2008-07-29 22:37:10 +00:00
parent 98251c1962
commit a49a751cd5
1 changed files with 4 additions and 4 deletions

View File

@ -482,22 +482,22 @@ namespace dlib
XFree(hints);
}
XResizeWindow(gui_core_kernel_2_globals::disp,win->x11_stuff.hwnd,win->width,win->height);
XMoveWindow(gui_core_kernel_2_globals::disp,win->x11_stuff.hwnd,win->x,win->y);
XFlush(gui_core_kernel_2_globals::disp);
if (win->has_been_resized)
{
XResizeWindow(gui_core_kernel_2_globals::disp,win->x11_stuff.hwnd,win->width,win->height);
win->has_been_resized = false;
win->on_window_resized();
}
if (win->has_been_moved)
{
XMoveWindow(gui_core_kernel_2_globals::disp,win->x11_stuff.hwnd,win->x,win->y);
win->has_been_moved = false;
win->on_window_moved();
}
XFlush(gui_core_kernel_2_globals::disp);
} break;