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

fix high CPU usage #1481 #1484

Closed
wants to merge 12 commits into from
Closed

fix high CPU usage #1481 #1484

wants to merge 12 commits into from

Commits on Mar 17, 2022

  1. fix issue lwouis#1249 lwouis#1079 lwouis#1392

    I am able to reproduce the issue by reinstall JetBrains AppCode. The first time I open AppCode after reinstall it, AltTab never show AppCode window. I debug the code on my Mac, I find that AltTab can get the event of app launched but never get the event of finishedLaunching. So I just remove the code runningApplication.isFinishedLaunching. After that, AltTab work well and the issue is fixed.
    metacodes authored Mar 17, 2022
    Configuration menu
    Copy the full SHA
    d058db6 View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2022

  1. fix: some app is active but can not get windows

    workaround: sometimes some apps are launched and are actived but OS returns the windows.count == 0. we wait for a moment. For example: Bear.app. At this scenario, AXUIElementCopyAttributeValue(self, kAXWindowsAttribute, &value) returns success but  AXUIElementCopyAttributeValue(self, kAXPositionAttribute, &value) and AXUIElementCopyAttributeValue(self, kAXSizeAttribute, &value) return attributeUnsupported. After we wait for a moment, all things run well.
    metacodes authored Mar 20, 2022
    Configuration menu
    Copy the full SHA
    5d33d3a View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2022

  1. Configuration menu
    Copy the full SHA
    c68b298 View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2022

  1. Configuration menu
    Copy the full SHA
    53b3fe3 View commit details
    Browse the repository at this point in the history
  2. reduce high CPU usage

    metacodes authored Apr 10, 2022
    Configuration menu
    Copy the full SHA
    43d44d2 View commit details
    Browse the repository at this point in the history
  3. sync code

    metacodes authored Apr 10, 2022
    Configuration menu
    Copy the full SHA
    4093f57 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8e6a973 View commit details
    Browse the repository at this point in the history
  5. fix: reduce high CPU usage

    We use  `isManageable` to indicate the subscription will success or not. No need to subscribe to an app which is `LSBackgroundOnly` or `LSUIElement`.
    metacodes authored Apr 10, 2022
    Configuration menu
    Copy the full SHA
    c6f656f View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2022

  1. Configuration menu
    Copy the full SHA
    0595767 View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2022

  1. Configuration menu
    Copy the full SHA
    1bed0b3 View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2022

  1. Configuration menu
    Copy the full SHA
    50eaed6 View commit details
    Browse the repository at this point in the history

Commits on May 18, 2022

  1. Merge branch 'lwouis_master'

    # Conflicts:
    #	src/api-wrappers/AXUIElement.swift
    metacodes committed May 18, 2022
    Configuration menu
    Copy the full SHA
    41a3883 View commit details
    Browse the repository at this point in the history