Weird Xorg bug - Can't maximize windows after unplugging HDMI (KDE & Nvidia)

I have noticed a very strange bug with Xorg, KDE, Nvidia GPU and unplugging external display.

OS and hardware info:

  • Bazzite 43.20260313.0
  • GPU: GeForce GTX 980 Ti
  • driver: nvidia-driver-580.95.05-1.fc43.x86_64

How to reproduce:

  • Configure 2 displays: HDMI-0 below DP-0
  • Unplug HDMI cable

What is the result:

  • See: video I recorded with my phone
  • Maximized windows take only a small part of the screen.
  • I can’t drag window bar outside the same small part of the screen.

Why am I using Xorg, instead of Wayland? Because I want to use SikuliX. It is a Java application, therefore uses X11 (see also “openjdk Wakefield”). Under Wayland it’s not able to interact with native wayland windows.

I have a workaround:

# It's a different resolution, than the "auto"
xrandr --output DP-0 --mode 1920x1080
sleep 0.5
xrandr --output DP-0 --auto

Where and how to report this bug? Is there a chance it’ll be fixed as Xorg is being phased out? Is there a way to make SikuliX work on Wayland or are there any alternatives?

As you are on Bazzite, not Fedora, you will have to ask the Bazzite community.

Bazzite is based on Fedora. If I reproduce this on normal Fedora, can we continue this conversation here?

1 Like

Yes!
You are the first person to ever suggest that!

Stick around :slight_smile:

When you are reproducing the problem on Fedora test if the problem exists under Wayland as well as Xorg please. It will be easier to get the problem looked at if it breaks under Wayland.

Hey! It’s me again!

I managed to reproduce this on Fedora. It happens on Xorg even with nouveau driver (in fact I installed nvidia driver, but I couldn’t get it to be used, but as it’s reproduced with nouveau, I don’t care that much).

Wayland is not affected.