alexanderk23 / gluqlo

Gluqlo: Fliqlo for Linux
alexanderk.ru/gluqlo
ISC License
284 stars 48 forks source link

Supoort for SDL2 #20

Open wangxa opened 2 years ago

wangxa commented 2 years ago

In Fedora 35, SDL has been updated to version 2. Please add the support for SDL2. The SDL_SetVideoMode (available in SDL 1.x) should be replaced with SDL_CreateWindow..

TheRaven500 commented 2 years ago

I replaced "SDL_SetVideoMode" in gluqlo.c, but it does not work:

gluqlo.c:412:12: error: ‘SDL_CreateWindow’ was not declared in this scope screen = SDL_CreateWindow(0, 0, 32, SDL_HWSURFACE|SDL_DOUBLEBUF|SDL_FULLSCREEN);

Any hint?

kreddkrikk commented 2 years ago

I created a fork of gluqlo with SDL2 support. You will need to set the environment variable SDL_VIDEO_ALLOW_SCREENSAVER=1 before starting the screensaver daemon.

EDIT: fixed the screensaver settings/demo preview display

wangxa commented 2 years ago

Thanks, kreddkrikk. I have tried your improved version. It works, except the preview in xscreensaver-demo.

hrqmonteiro commented 2 years ago

I created a fork of gluqlo with SDL2 support. You will need to set the environment variable SDL_VIDEO_ALLOW_SCREENSAVER=1 before starting the screensaver daemon.

EDIT: fixed the screensaver settings/demo preview display

In here, it opens the screensavers, shows the flipclock and imediately goes back to the normal screen. As if i had moved my mouse or something.

Doesn't happens with other xscreensavers examples.

How would i fix this?

kreddkrikk commented 1 year ago

Thanks, kreddkrikk. I have tried your improved version. It works, except the preview in xscreensaver-demo.

I've now fixed the preview in xscreensaver-demo and xscreensaver-settings.

In here, it opens the screensavers, shows the flipclock and imediately goes back to the normal screen. As if i had moved my mouse or something.

Doesn't happens with other xscreensavers examples.

How would i fix this?

How is gluqlo starting? Are you running it separately (ie ./gluqlo), using xscreensaver-command -activate, or letting the xscreensaver daemon start it normally? Start a new issue in the forked repo and post the output you get when running it from command line with ./gluqlo. Also include information about your Linux distro.