craftos2 icon indicating copy to clipboard operation
craftos2 copied to clipboard

Strange behavior when resizing

Open SammyForReal opened this issue 2 years ago • 4 comments

Description:

Hello. When I try to change the size of my window, CraftOS-PC moves very strangely and resizes in width when I change the height as well as the other way around. Greetings.

To Reproduce:

  1. Literally just try to resize the window on Arch Linux

Expected behavior: Resizing without weird behavior.

Example:

https://user-images.githubusercontent.com/53350357/159580173-3134bb10-b7aa-4418-8199-2e00be5c78c9.mp4

Environment:

  • OS: Arch Linux 64-bit
  • Desktop Environment: GNOME 41.5 (x11)
  • OS Version: yes (rolling distro, so up to date)
  • CraftOS-PC: v2.6.5.1
  • Compiled via AUR package

Other Context:

I have NVIDIA graphics drivers installed.

SammyForReal avatar Mar 22 '22 21:03 SammyForReal

Does this happen on Wayland?

Is SDL_VIDEODRIVER set? If so, what is it set to?

I have never seen this issue under Plasma - I suspect it's down to GNOME doing something weird.

Or NVIDIA.

Or NVIDIA + GNOME.

Ocawesome101 avatar Mar 22 '22 22:03 Ocawesome101

As it says there, I do not use Wayland but xorg. I have also changed nothing (or SDL_VIDEODRIVER e.g. tells me nothing) However, I believe that the NVIDIA drivers play less of a role here. Since I also only have this issue here on GNOME, I assume it has something to do with it.

SammyForReal avatar Mar 23 '22 11:03 SammyForReal

The same happens on Fedora Workstation 35 with GNOME 14.4 (X11) and the proprietary NVIDIA driver. CraftOS-PC is installed via the COPR repository.

In addition, the program crashes when resizing the window too quickly. (as described in #225)

https://user-images.githubusercontent.com/24989169/159740507-0df9216b-a7ea-408f-8131-2d9d32ea2eb8.mp4

LeMoonStar avatar Mar 23 '22 15:03 LeMoonStar

This likely has to do with snapToSize changing the window size while resizing - I guess GNOME likes to handle resizing differently from other platforms. Try disabling the snapToSize config option, and see if it still occurs.

MCJack123 avatar Mar 29 '22 14:03 MCJack123