I am creating a window without the border by setting window hint GLFW_DECORATED to false.
If I am not wrong, this is not a fullscreen window but borderless window, right ?
The documentation says that we can not move(set position) fullscreen window.
I tried to move this borderless window by using glfwSetWindowPos() function but the window does not move.
Any idea what is wrong here ?
Maybe OP just wanted his own window decorations - title bar, window buttons - and allow user to move this window around by dragging like normal window.
My application works fine with and without decorations, no matter what window size, even if it is partially outside screen or wider/taller. Can switch to fullscreen and back without problems.
I save last position and size of the window in external file on exit and load this values on start.
Already tested it once more without decorations - it appears exactly where I want it to be on start and can be moved to anywhere during execution with glfwSetWindowPos.
My own purpose for this is trivial - application must remember its window (maybe multiple windows) layout from last session. Never liked apps that don’t do that. For example I must always reposition and resize pdf viewer (Evince) to read books comfortably.