UseTakeFocus - Mac driver equivalent?

Questions about Wine on macOS.
Post Reply
User avatar
CartoonChess
Newbie
Newbie
Posts: 2
Joined: Wed Sep 09, 2020 3:37 am
Location: Seoul
Contact:

UseTakeFocus - Mac driver equivalent?

Post by CartoonChess » Wed Sep 09, 2020 11:22 pm

Hello, fairly new user here.

I’ve seen several posts elsewhere online documenting a fix for an issue where certain keyboard input fails after the user focuses on a different application and then returns focus to the Wine program. In particular, full screen games will stop responding to WASD keys.

I have found that clicking on the application window directly (as opposed to the application’s dock icon, or using cmd-tab) to return focus will also solve the keyboard issue sometimes, and repeating this process will usually solve the problem after a few tries.

The recommended fix is to disable UseTakeFocus in the registry for the X11 driver. However, I’m curious if there’s any equivalent option for the Mac driver, or else, any other solution which doesn’t require XQuartz.

System: macOS 10.15.6
Wine: 4.12.1
Application: Testing with Among Us, although others report this being an issue specifically with Unity-based games

Thank you.

madewokherd
Level 3
Level 3
Posts: 77
Joined: Mon Jun 02, 2008 5:03 pm
Contact:

Re: UseTakeFocus - Mac driver equivalent?

Post by madewokherd » Thu Sep 10, 2020 9:30 pm

Looking at macdrv_main.c, I don't see anything that looks relevant.

Based on my very limited knowledge of this, commenting the call to macdrv_window_rejected_focus in macdrv_window_got_focus might do something vaguely similar?

Gcenx
Level 6
Level 6
Posts: 517
Joined: Mon Dec 25, 2017 12:11 pm

Re: UseTakeFocus - Mac driver equivalent?

Post by Gcenx » Thu Sep 10, 2020 10:25 pm

Going off a similar open ticket for CrossOver-20 it’s a no. Unity based games are just clusters see Magic The Gathering Area running via wine....

As your running macOS Catalina and wine-crossover you really won’t get much help on Winehq

User avatar
CartoonChess
Newbie
Newbie
Posts: 2
Joined: Wed Sep 09, 2020 3:37 am
Location: Seoul
Contact:

Re: UseTakeFocus - Mac driver equivalent?

Post by CartoonChess » Sat Sep 12, 2020 8:27 pm

madewokherd wrote:
Thu Sep 10, 2020 9:30 pm
Looking at macdrv_main.c, I don't see anything that looks relevant.

Based on my very limited knowledge of this, commenting the call to macdrv_window_rejected_focus in macdrv_window_got_focus might do something vaguely similar?
Thanks for pointing me toward the driver source and poking around! I'll fiddle around with what you've found.
Gcenx wrote:
Thu Sep 10, 2020 10:25 pm
Going off a similar open ticket for CrossOver-20 it’s a no. Unity based games are just clusters see Magic The Gathering Area running via wine....

As your running macOS Catalina and wine-crossover you really won’t get much help on Winehq
Thanks for this. I'll likely settle with the workaround for now then. By the way, your repos on Github have been a huge help!

Post Reply