Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A window behind app window takes focus when I click. #12926

Open
jinlee0 opened this issue Apr 11, 2024 · 2 comments
Open

A window behind app window takes focus when I click. #12926

jinlee0 opened this issue Apr 11, 2024 · 2 comments
Labels
A-UI Graphical user interfaces, styles, layouts, and widgets A-Windowing Platform-agnostic interface layer to run your app in C-Bug An unexpected or incorrect behavior O-Linux Specific to the Linux desktop operating system

Comments

@jinlee0
Copy link

jinlee0 commented Apr 11, 2024

Bevy version

aa80e2d

[Optional] Relevant system information

cargo 1.77.0 (3fe68eabf 2024-02-29)
AdapterInfo { name: "NVIDIA GeForce RTX 4060", vendor: 4318, device: 10370, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "550.67", backend: Vulkan }
SystemInfo { os: "Linux rolling Arch Linux", kernel: "6.8.4-arch1-1", cpu: "AMD Ryzen 7 7800X3D 8-Core Processor", core_count: "8", memory: "31.1 GiB" }

What you did

Describe how you arrived at the problem. If you can, consider providing a code snippet or link.

cargo run --example window_resizing

and also,

cargo run --example window_resizing --features wayland

I resized the window to the fullscreen by clicking the maximaize button and clicked on the screen.

What went wrong

The window behind the Bevy window took focus. This seems to occur under the following conditions:

  1. When the Bevy window is fullscreen.
  2. When there is another window (browser, file explorer, etc.) behind the Bevy window and at the clicking point.
  3. When clicking specific area, the brighter darker area.
    focus_area

Additional information

Also, screen resizing in the usual way using the mouse does not work. Even if I move the mouse to the corner of the screen, the mouse icon does not change to a resizing icon.

I tried updating the system by yay -Syu and rebooting.

@jinlee0 jinlee0 added C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled labels Apr 11, 2024
@jinlee0 jinlee0 changed the title Window focus changed on click bevy window A window behind app window takes focus when I click. Apr 11, 2024
@alice-i-cecile alice-i-cecile added A-Windowing Platform-agnostic interface layer to run your app in O-Linux Specific to the Linux desktop operating system A-UI Graphical user interfaces, styles, layouts, and widgets and removed S-Needs-Triage This issue needs to be labelled labels Apr 11, 2024
@jinlee0
Copy link
Author

jinlee0 commented Apr 14, 2024

I tried it again today and it works fine.
No focus is lost, resizing works fine.
I didn't change any code, and my local environment is the same.

@Friz64
Copy link
Contributor

Friz64 commented Apr 16, 2024

I too use the GNOME desktop and been having similar issues recently in other apps (though not Bevy, or any Rust/winit apps for that matter). I don't believe that there's anything that can be done to fix this. I'd guess it's some obscure GNOME/Mutter bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-UI Graphical user interfaces, styles, layouts, and widgets A-Windowing Platform-agnostic interface layer to run your app in C-Bug An unexpected or incorrect behavior O-Linux Specific to the Linux desktop operating system
Projects
None yet
Development

No branches or pull requests

3 participants