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

Reliably enable window defocus on Linux #499

Merged
merged 1 commit into from
Jun 2, 2024

Conversation

flukiluke
Copy link
Contributor

The FocusIn/FocusOut X11 events are more reflective of active foreground window that Enter/Leave, which only relates to mouse movement. In particular, FocusOut fires when Alt-Tabbing away so the alt key is correctly released.

Also re-enable IDE defocus processing on Linux so the Alt key no longer keeps the menus selected when Alt-Tabbing. This effectively reverts QB64Team/qb64#1 which as far as I can tell was solely because one person didn't like the defocus behaviour.

The FocusIn/FocusOut X11 events are more reflective of active
foreground window that Enter/Leave, which only relates to mouse
movement. In particular, FocusOut fires when Alt-Tabbing away
so the alt key is correctly released.

Also re-enable IDE defocus processing on Linux so the Alt key no
longer keeps the menus selected when Alt-Tabbing.
@flukiluke flukiluke force-pushed the linux_windowfocus branch from 3ec2271 to 90af0d6 Compare June 2, 2024 22:07
@flukiluke flukiluke merged commit 6c43101 into QB64-Phoenix-Edition:main Jun 2, 2024
4 checks passed
@flukiluke flukiluke deleted the linux_windowfocus branch June 2, 2024 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants