chiark / gitweb /
Do not raise the window on focus for windows/linux
authorYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Wed, 31 Dec 2014 05:03:45 +0000 (00:03 -0500)
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Wed, 31 Dec 2014 05:03:45 +0000 (00:03 -0500)
This fixes issue #65

Cura/gui/app.py

index 996ab67098916c968b54b99d0009109f17b04a05..a0bfd57a6f0f867106d7d4158d34c16a660afb8c 100644 (file)
@@ -78,9 +78,10 @@ class CuraApp(wx.App):
                pass
 
        def OnActivate(self, e):
-               if e.GetActive():
-                       self.GetTopWindow().Raise()
-               e.Skip()
+               if platform.system() == "Darwin":
+                       if e.GetActive():
+                               self.GetTopWindow().Raise()
+                       e.Skip()
 
        def Win32SocketListener(self, port):
                import socket