[1.3] testwm.c does not fullscreen

Hey,

if I pass the -fullscreen argument, testwm does not run in fullscreen mode.

It does not have a border, or a titlebar, and pressing Alt+Enter displays a message in terminal saying it is switching, but nothing happens.

Same thing when I start without an argument… Then it does gave a border and titlebar, but pressing the combo just displays a message without any changes.

I have also compiled another program I had started writing in 1.2 (which is at the moment simply a menu) and it also centers itself (forgot to say, so did testwm) without taking up the whole screen, at least horizontally.

Running Ubuntu Netbook Remix 1.0.1 (Ubuntu 8.04 core) with Gnome 2.22.3 and Metacity 1:2.22.0-0ubuntu4.netbook1

The mouse pointer cannot leave the part of the screen which is drawn, but it does not get stretched as it should (and did, with SDL 1.2)

Am I missing something? Is there a different way of making the window full-screen?

I mean, it should at least work properly in testwm.

I am using:

SDL_Surface* screen = SDL_SetVideoMode(SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_BPP,
SDL_HWSURFACE|SDL_DOUBLEBUF|SDL_FULLSCREEN);

as I have not made ANY changes to my code yet.

Thanks,
Pat

See bug 702.
Reason all video modes that would resize the actual screen are currently
disabled. My patch enables randr as I think only that is needed besides the
xinerama, which I don’t use so didn’t touch that.On Wednesday 11 March 2009 07:53:16 Patryk Bratkowski wrote:

Hey,

if I pass the -fullscreen argument, testwm does not run in fullscreen mode.

It does not have a border, or a titlebar, and pressing Alt+Enter displays a
message in terminal saying it is switching, but nothing happens.

Same thing when I start without an argument… Then it does gave a border
and titlebar, but pressing the combo just displays a message without any
changes.

I have also compiled another program I had started writing in 1.2 (which is
at the moment simply a menu) and it also centers itself (forgot to say, so
did testwm) without taking up the whole screen, at least horizontally.

Running Ubuntu Netbook Remix 1.0.1 (Ubuntu 8.04 core) with Gnome 2.22.3 and
Metacity 1:2.22.0-0ubuntu4.netbook1

The mouse pointer cannot leave the part of the screen which is drawn, but
it does not get stretched as it should (and did, with SDL 1.2)

Am I missing something? Is there a different way of making the window
full-screen?

I mean, it should at least work properly in testwm.

I am using:

SDL_Surface* screen = SDL_SetVideoMode(SCREEN_WIDTH, SCREEN_HEIGHT,
SCREEN_BPP, SDL_HWSURFACE|SDL_DOUBLEBUF|SDL_FULLSCREEN);

as I have not made ANY changes to my code yet.

Thanks,
Pat

Awesome, thanks :slight_smile:

Not planning on releasing anything yet so it wasn’t such a great deal, but it’s good to know.

Pat> ----- Original Message -----

From: sn.ml@keijukammari.fi (Sami Naatanen)
To: A list for developers using the SDL library. (includes SDL-announce)
Sent: Wednesday, March 11, 2009 12:31:58 AM
Subject: Re: [SDL] [1.3] testwm.c does not fullscreen

On Wednesday 11 March 2009 07:53:16 Patryk Bratkowski wrote:

Hey,

if I pass the -fullscreen argument, testwm does not run in fullscreen mode.

It does not have a border, or a titlebar, and pressing Alt+Enter displays a
message in terminal saying it is switching, but nothing happens.

Same thing when I start without an argument… Then it does gave a border
and titlebar, but pressing the combo just displays a message without any
changes.

I have also compiled another program I had started writing in 1.2 (which is
at the moment simply a menu) and it also centers itself (forgot to say, so
did testwm) without taking up the whole screen, at least horizontally.

Running Ubuntu Netbook Remix 1.0.1 (Ubuntu 8.04 core) with Gnome 2.22.3 and
Metacity 1:2.22.0-0ubuntu4.netbook1

The mouse pointer cannot leave the part of the screen which is drawn, but
it does not get stretched as it should (and did, with SDL 1.2)

Am I missing something? Is there a different way of making the window
full-screen?

I mean, it should at least work properly in testwm.

I am using:

SDL_Surface* screen = SDL_SetVideoMode(SCREEN_WIDTH, SCREEN_HEIGHT,
SCREEN_BPP, SDL_HWSURFACE|SDL_DOUBLEBUF|SDL_FULLSCREEN);

as I have not made ANY changes to my code yet.

Thanks,
Pat

See bug 702.
Reason all video modes that would resize the actual screen are currently
disabled. My patch enables randr as I think only that is needed besides the
xinerama, which I don’t use so didn’t touch that.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org