raylibtech / rtools

rtools feedback and issues
17 stars 1 forks source link

[`rTexViewer`] App softlocking if using a TWM and passthrough #40

Closed Rikaisan closed 2 weeks ago

Rikaisan commented 2 months ago

When using a tiling window manager, windows don't have server side decorations, therefore closing a window relies on a keybind or through a button/action inside the application; knowing this, this is how you can get softlocked:

  1. Make changes to an image and don't save
  2. Enable window mouse pass-through
  3. Press ESC or try to close the app through a keybind
  4. You will get a menu saying "Do you want to close without saving?" and be softlocked!

At this stage, you won't be able to interact with the menu or close the app in any way. You will be forced to kill the app by launching a terminal and killing it, losing all your progress.

This could be fixed by either making ESC toggle that menu (equivalent to pressing NO if the menu is open), disabling the mouse pass-through mode when a modal like that appears or both.

OS: EndeavourOS Linux x86_64 Kernel: 6.9.5-arch1-1 DE: Hyprland GPU: RX6700XT Video Driver: amdgpu

image

raysan5 commented 1 month ago

@Rikaisan Thanks for reporting, it will be reviewed for next release!

raysan5 commented 2 weeks ago

Reviewed, should be ok on upcoming release.