X-Git-Url: http://git.tdb.fi/?p=libs%2Fgui.git;a=blobdiff_plain;f=source%2Fgraphics%2Fwindow.cpp;h=d116b691c14bcbf11592bca91d9edcb647eca792;hp=5bc9a358e2786d99e7ba7e4be1c63b6dce20afa8;hb=9c7ae47da64904c2aa9a9969870ca8befebe7d02;hpb=f6ca714e2258f4cad433801c88264947d4c2d14c diff --git a/source/graphics/window.cpp b/source/graphics/window.cpp index 5bc9a35..d116b69 100644 --- a/source/graphics/window.cpp +++ b/source/graphics/window.cpp @@ -11,6 +11,7 @@ namespace Graphics { WindowOptions::WindowOptions(): x(0), y(0), + user_position(false), width(640), height(480), fullscreen(false), @@ -41,6 +42,7 @@ void Window::init() kbd_autorepeat = true; touch_input = false; resizing = false; + moving = false; priv = new Private; platform_init(); @@ -70,6 +72,8 @@ void Window::reconfigure(const WindowOptions &opts) bool fullscreen_changed = (opts.fullscreen!=options.fullscreen); if(opts.width!=options.width || opts.height!=options.height) resizing = true; + if(opts.x!=options.x || opts.y!=options.y) + moving = true; if(visible) {