You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But I have a problem with window postitioning on startup. When I create a window in fullscreen mode and set the window.set_scree_num() integer, it will work as expected and the window gets spawned on another display. But this does not work when i leave fullscreen mode or dont go to fullscreen in the first place.
Is there a way to set the "postition" of the window to another screen?
The text was updated successfully, but these errors were encountered:
Thank you.
I'll have to investigate this further. You could probably force the position of the window by getting the screen's xywh coordinates or work area:
use fltk::{prelude::*,*};fnmain(){let a = app::App::default();let(x, y, _w, _h) = app::screen_xywh(2);letmut w = window::Window::new(100 + x,100 + y,400,300,None);
w.end();
w.show();
a.run().unwrap();}
You can also move the window using w.resize(/*coords*/).
Yes a couple of minutes ago I came to the same workaround thanks to the docs. That works for now. I get the screen offset position with the xywh function of the desired screen and set the postion of the window with the offset i want from the screen. I dont know if the set_screen_num function is supposed to do the same... maybe the combination of window.set_screen_num() and then window.set_pos(x,y) would make sense if that would work but at least it works with the work around :D
Hello,
first of all really awesome project!
But I have a problem with window postitioning on startup. When I create a window in fullscreen mode and set the window.set_scree_num() integer, it will work as expected and the window gets spawned on another display. But this does not work when i leave fullscreen mode or dont go to fullscreen in the first place.
Is there a way to set the "postition" of the window to another screen?
The text was updated successfully, but these errors were encountered: