Skip to content

Instantly share code, notes, and snippets.

@1e4
Created July 19, 2017 08:27
Show Gist options
  • Save 1e4/9987d3f91984ae16393dadd27d490d0f to your computer and use it in GitHub Desktop.
Save 1e4/9987d3f91984ae16393dadd27d490d0f to your computer and use it in GitHub Desktop.
Razer taking over focus for no reason!
#!/usr/bin/python
from AppKit import NSWorkspace
import time
t = range(1,100)
for i in t:
time.sleep(3)
activeAppName = NSWorkspace.sharedWorkspace().activeApplication()['NSApplicationName']
print activeAppName
@1e4
Copy link
Author

1e4 commented Jul 19, 2017

Ever since I first started working on a mac almost 8 months ago, Razer software has sucked. It repeatedly steals focus, or should I say instead it loses focus on whatever you window you have open.

The code above prints out the following for me

![Output]
(https://storage.jumpshare.com/preview/R0xYmEKnTJOwDBCPaw_cZZKX5uZ-jODsbBLR8JwgtTwNNhqDjdhJ5zpbuJ6x07GaHGSI2SowkDkkb0jr6UKOId0Iq-_ZMIwlJNqsu6s4bO0F1kR3dMUjedqC16uBUu85)

This needs to be addressed,

Other occurrences that are known about

https://insider.razerzone.com/index.php?threads/rzupdater-process-steals-focus-on-os-x-sierra.18081/

For a temp fix you have to close RzDeviceEngine and RzUpdater, optionally restarting your mac.

Submitting tickets is pointless, clicking that 'gear' icon is also useless. The only advice I've ever got is 'Reinstall'. Fix your shit.. please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment