SDL 2.0.4 on Ubuntu 16.04 - Multiple displays fullscreen problem
up vote
1
down vote
favorite
I have a vertical dual screen setup with each monitor's size of 1920x1080.
My software must run on both screens with a single SDL window (1920x2160) on fullscreeen.
The SDL_WindowFlags mask used in the window creation is the following : (SDL_WINDOW_FULLSCREEN | SDL_WINDOW_FULLSCREEN_DESKTOP).
Since SDL_WINDOW_FULLSCREEN_DESKTOP polls the actual hardware resolution (as far as i know) I am presented with a single screen of 1920x1080 (the first half of the software's GUI) rather than 1920x2160 so the second screen is not drawn.
A workaround is to change the mask to (SDL_WINDOW_FULLSCREEN | SDL_WINDOW_BORDERLESS) to run it in windowed borderless mode but that case is not applicable to the software needs (its required and it should not be done like this).
Any recommendations for running the software in real fullscreen, excluding splitting the logic into many SDL windows, are welcomed.
c++ linux fullscreen sdl-2
|
show 3 more comments
up vote
1
down vote
favorite
I have a vertical dual screen setup with each monitor's size of 1920x1080.
My software must run on both screens with a single SDL window (1920x2160) on fullscreeen.
The SDL_WindowFlags mask used in the window creation is the following : (SDL_WINDOW_FULLSCREEN | SDL_WINDOW_FULLSCREEN_DESKTOP).
Since SDL_WINDOW_FULLSCREEN_DESKTOP polls the actual hardware resolution (as far as i know) I am presented with a single screen of 1920x1080 (the first half of the software's GUI) rather than 1920x2160 so the second screen is not drawn.
A workaround is to change the mask to (SDL_WINDOW_FULLSCREEN | SDL_WINDOW_BORDERLESS) to run it in windowed borderless mode but that case is not applicable to the software needs (its required and it should not be done like this).
Any recommendations for running the software in real fullscreen, excluding splitting the logic into many SDL windows, are welcomed.
c++ linux fullscreen sdl-2
"excluding splitting" - you actually need to create a swap chain (possibly on different adapters) per output
– VTT
Nov 8 at 9:27
How are your screens organized? Does any other Program expands to both screens if you make it fullscreen?
– user1810087
Nov 8 at 9:42
Screen 0 (main) - Resolution 1920x1080, Position [0,0] Screen 1 - Resolution 1920x1080, Position [0,1080] I'm not sure how to test the second question
– Stoyan Lupov
Nov 8 at 9:58
1
I could be wrong, but something tells me those two options (two windows or borderless fullscreen) is all you have.
– HolyBlackCat
Nov 8 at 10:02
I mean, if you for example open any Program and press F11 (on a regular ubuntu installation it should fullscreen the current application). Does it uses both or one screen in Fullscreen mode?
– user1810087
Nov 8 at 11:30
|
show 3 more comments
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have a vertical dual screen setup with each monitor's size of 1920x1080.
My software must run on both screens with a single SDL window (1920x2160) on fullscreeen.
The SDL_WindowFlags mask used in the window creation is the following : (SDL_WINDOW_FULLSCREEN | SDL_WINDOW_FULLSCREEN_DESKTOP).
Since SDL_WINDOW_FULLSCREEN_DESKTOP polls the actual hardware resolution (as far as i know) I am presented with a single screen of 1920x1080 (the first half of the software's GUI) rather than 1920x2160 so the second screen is not drawn.
A workaround is to change the mask to (SDL_WINDOW_FULLSCREEN | SDL_WINDOW_BORDERLESS) to run it in windowed borderless mode but that case is not applicable to the software needs (its required and it should not be done like this).
Any recommendations for running the software in real fullscreen, excluding splitting the logic into many SDL windows, are welcomed.
c++ linux fullscreen sdl-2
I have a vertical dual screen setup with each monitor's size of 1920x1080.
My software must run on both screens with a single SDL window (1920x2160) on fullscreeen.
The SDL_WindowFlags mask used in the window creation is the following : (SDL_WINDOW_FULLSCREEN | SDL_WINDOW_FULLSCREEN_DESKTOP).
Since SDL_WINDOW_FULLSCREEN_DESKTOP polls the actual hardware resolution (as far as i know) I am presented with a single screen of 1920x1080 (the first half of the software's GUI) rather than 1920x2160 so the second screen is not drawn.
A workaround is to change the mask to (SDL_WINDOW_FULLSCREEN | SDL_WINDOW_BORDERLESS) to run it in windowed borderless mode but that case is not applicable to the software needs (its required and it should not be done like this).
Any recommendations for running the software in real fullscreen, excluding splitting the logic into many SDL windows, are welcomed.
c++ linux fullscreen sdl-2
c++ linux fullscreen sdl-2
asked Nov 8 at 9:23
Stoyan Lupov
685
685
"excluding splitting" - you actually need to create a swap chain (possibly on different adapters) per output
– VTT
Nov 8 at 9:27
How are your screens organized? Does any other Program expands to both screens if you make it fullscreen?
– user1810087
Nov 8 at 9:42
Screen 0 (main) - Resolution 1920x1080, Position [0,0] Screen 1 - Resolution 1920x1080, Position [0,1080] I'm not sure how to test the second question
– Stoyan Lupov
Nov 8 at 9:58
1
I could be wrong, but something tells me those two options (two windows or borderless fullscreen) is all you have.
– HolyBlackCat
Nov 8 at 10:02
I mean, if you for example open any Program and press F11 (on a regular ubuntu installation it should fullscreen the current application). Does it uses both or one screen in Fullscreen mode?
– user1810087
Nov 8 at 11:30
|
show 3 more comments
"excluding splitting" - you actually need to create a swap chain (possibly on different adapters) per output
– VTT
Nov 8 at 9:27
How are your screens organized? Does any other Program expands to both screens if you make it fullscreen?
– user1810087
Nov 8 at 9:42
Screen 0 (main) - Resolution 1920x1080, Position [0,0] Screen 1 - Resolution 1920x1080, Position [0,1080] I'm not sure how to test the second question
– Stoyan Lupov
Nov 8 at 9:58
1
I could be wrong, but something tells me those two options (two windows or borderless fullscreen) is all you have.
– HolyBlackCat
Nov 8 at 10:02
I mean, if you for example open any Program and press F11 (on a regular ubuntu installation it should fullscreen the current application). Does it uses both or one screen in Fullscreen mode?
– user1810087
Nov 8 at 11:30
"excluding splitting" - you actually need to create a swap chain (possibly on different adapters) per output
– VTT
Nov 8 at 9:27
"excluding splitting" - you actually need to create a swap chain (possibly on different adapters) per output
– VTT
Nov 8 at 9:27
How are your screens organized? Does any other Program expands to both screens if you make it fullscreen?
– user1810087
Nov 8 at 9:42
How are your screens organized? Does any other Program expands to both screens if you make it fullscreen?
– user1810087
Nov 8 at 9:42
Screen 0 (main) - Resolution 1920x1080, Position [0,0] Screen 1 - Resolution 1920x1080, Position [0,1080] I'm not sure how to test the second question
– Stoyan Lupov
Nov 8 at 9:58
Screen 0 (main) - Resolution 1920x1080, Position [0,0] Screen 1 - Resolution 1920x1080, Position [0,1080] I'm not sure how to test the second question
– Stoyan Lupov
Nov 8 at 9:58
1
1
I could be wrong, but something tells me those two options (two windows or borderless fullscreen) is all you have.
– HolyBlackCat
Nov 8 at 10:02
I could be wrong, but something tells me those two options (two windows or borderless fullscreen) is all you have.
– HolyBlackCat
Nov 8 at 10:02
I mean, if you for example open any Program and press F11 (on a regular ubuntu installation it should fullscreen the current application). Does it uses both or one screen in Fullscreen mode?
– user1810087
Nov 8 at 11:30
I mean, if you for example open any Program and press F11 (on a regular ubuntu installation it should fullscreen the current application). Does it uses both or one screen in Fullscreen mode?
– user1810087
Nov 8 at 11:30
|
show 3 more comments
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53204744%2fsdl-2-0-4-on-ubuntu-16-04-multiple-displays-fullscreen-problem%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
"excluding splitting" - you actually need to create a swap chain (possibly on different adapters) per output
– VTT
Nov 8 at 9:27
How are your screens organized? Does any other Program expands to both screens if you make it fullscreen?
– user1810087
Nov 8 at 9:42
Screen 0 (main) - Resolution 1920x1080, Position [0,0] Screen 1 - Resolution 1920x1080, Position [0,1080] I'm not sure how to test the second question
– Stoyan Lupov
Nov 8 at 9:58
1
I could be wrong, but something tells me those two options (two windows or borderless fullscreen) is all you have.
– HolyBlackCat
Nov 8 at 10:02
I mean, if you for example open any Program and press F11 (on a regular ubuntu installation it should fullscreen the current application). Does it uses both or one screen in Fullscreen mode?
– user1810087
Nov 8 at 11:30