bevyengine / bevyengine/bevy

A window behind app window takes focus when I click.

Open
#12,926 2 comments 0 reactions 0 assignees View on GitHub
A-UI A-Windowing C-Bug O-Linux
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## Bevy version

aa80e2d658ed1b84787fd512839a8c84238979ef

## \[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](https://github.com/bevyengine/bevy/assets/74762475/dcc7742f-cfa4-4290-90d1-2bffcbdf51bd)

## 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.