https://bugs.kde.org/show_bug.cgi?id=403764

            Bug ID: 403764
           Summary: Fullscreen issues
           Product: kwin
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: platform-x11-standalone
          Assignee: kwin-bugs-n...@kde.org
          Reporter: dev...@gmail.com
  Target Milestone: ---

Hi,

Mailing list seems empty, so I post it here.

I'm Supertuxkart developer. We get some bug reports recently, like:
https://github.com/supertuxkart/stk-code/issues/3726
https://github.com/supertuxkart/stk-code/issues/3689

Also on IRC:
18:50 < lizzycaravan> hi
18:50 < lizzycaravan> i installed the game from the arch repos
18:50 < lizzycaravan> and i cannot change the game resolution
18:50 < lizzycaravan> when i last installed the game 2 months ago,
that was possible
18:51 < lizzycaravan> is that well known, or is it something related
to my new system?

I was able to reproduce similar issue with kwin-x11 on ubuntu 18.04.
For me XGetGeometry() was reporting window size as it would be with
decorations even though it was already changed to fullscreen.

Everything is in this file:
https://github.com/supertuxkart/stk-code/blob/master/lib/irrlicht/source/Irrlicht/CIrrDeviceLinux.cpp

It's a bit messy, but basically we:
- change resolution using xrandr
- create a window
- change a window to fullscreen with sending _NET_WM_STATE_FULLSCREEN event
- wait in a loop until fullscreen window property is set
- read actual window size, because window manager could change it to
different values, esp. in windowed mode

Probably waiting for fullscreen property doesn't guarantee that window
is ready (and also that resolution is already changed). Is there
something more we can do to get correct window size?

In my case I can "solve" it by waiting several miliseconds before
using XGetGeometry(). But it's another ugly hack...

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to