Comment 4 for bug 1018600

Revision history for this message
Yves (yves-gwerder) wrote :

It's this changeset that solves the problem:
http://hg.libsdl.org/SDL/rev/ad4ed9f0336f

I've tested about 8 different versions until I found it out.
Now I hope an Ubuntu developer can tell us what to do next. :)

That's what I did (with multiple version):
yves@yves-desktop:~/Projekte$ mkdir sdl_ad4ed9f0336f
yves@yves-desktop:~/Projekte$ mkdir sdl_ad4ed9f0336f_install
yves@yves-desktop:~/Projekte$ cd sdl_ad4ed9f0336f
yves@yves-desktop:~/Projekte/sdl_ad4ed9f0336f$ hg clone http://hg.libsdl.org/SDL -r ad4ed9f0336f .
yves@yves-desktop:~/Projekte/sdl_ad4ed9f0336f$ ./autogen.sh
yves@yves-desktop:~/Projekte/sdl_ad4ed9f0336f$ ./configure --prefix=/home/yves/Projekte/sdl_ad4ed9f0336f_install
yves@yves-desktop:~/Projekte/sdl_ad4ed9f0336f$ make
yves@yves-desktop:~/Projekte/sdl_ad4ed9f0336f$ make install
yves@yves-desktop:~/Projekte/sdl_ad4ed9f0336f$ export SDL_CONFIG="/home/yves/Projekte/sdl_ad4ed9f0336f_install/bin/sdl-config"
yves@yves-desktop:~/Projekte/sdl_f56b95794ac8$ cd ../0ad/build/workspaces/gcc
yves@yves-desktop:~/Projekte/0adbuild/workspaces/gcc$ make clean
yves@yves-desktop:~/Projekte/0ad/build/workspaces/gcc$ cd ..
yves@yves-desktop:~/Projekte/0ad/build/workspaces$ ./clean-workspaces.sh
yves@yves-desktop:~/Projekte/0ad/build/workspaces$ ./update-workspaces.sh --with-system-enet --with-system-nvtt --with-system-mozjs185
yves@yves-desktop:~/Projekte/0ad/build/workspaces$ cd gcc
yves@yves-desktop:~/Projekte/0ad/build/workspaces/gcc$ make -j5
yves@yves-desktop:~/Projekte/0ad/build/workspaces/gcc$ cd ../../../binaries/system/
yves@yves-desktop:~/Projekte/0ad/binaries/system$ ./pyrogenesis

From another terminal:
yves@yves-desktop:~/Projekte/0ad/binaries/system$ ldd pyrogenesis | grep sdl
 libSDL-1.2.so.0 => /home/yves/Projekte/sdl_ad4ed9f0336f_install/lib/libSDL-1.2.so.0 (0x00007f136b19d000)

To reproduce the bug (shouldn't be possible with this version):
1. Configure 0ad for windowed mode by creating a configuration file here
~/.config/0ad/config/user.cfg

2. Add the following two lines to the configuration file:
windowed = "true"
hotkey.togglefullscreen = "AltGr+Return"

3. run ./pyrogenesis from 0ad/binaries/system

4. Move the mouse a bit on the main menu. Notice that the button "Enable feedback" has a hover-effect.

5. Hit AltGr+Return to toggle fullscreen mode. Notice that the hover-effect of the feedback button doesn't work. Clicking the button won't work either.