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

Feature/click indicator to focus win #36

Merged
merged 16 commits into from
Sep 18, 2020

Conversation

AdamWagner
Copy link
Owner

Ability to click indicator to focus a window.

  - stackline/stackline.lua is now a proper module storing fields and methods in a table
  - Move global variables into stackline module
  - On every windowFocused event, check to see if screen has changed. If so, refresh stack indicators.

  The last point is what provides an MVP for multi-monitors support:

    - `stackline` only renders on the monitor that contains the focused window
    - Stacks on screens that do not contain the focused window do not have indicators
    - Because refreshing (query all windows, re-render all stack indicators) is kind of slow (500ms), rapidly switching screens is not a great experience

I still think the "proper" solution will require updating the data model to track screens (at least) and potentially spaces. This will enable stackline to render on all screens. If spaces are modeled, it will additionally speed up the rendering of stack indicators when switching between spaces with stacks.
@AdamWagner AdamWagner added this to the v0.1.60 milestone Sep 6, 2020
@AdamWagner AdamWagner linked an issue Sep 6, 2020 that may be closed by this pull request
@AdamWagner AdamWagner added the enhancement New feature or request label Sep 6, 2020
@AdamWagner AdamWagner self-assigned this Sep 6, 2020
@AdamWagner AdamWagner merged commit 496b0c6 into master Sep 18, 2020
@AdamWagner AdamWagner deleted the feature/click-indicator-to-focus-win branch September 18, 2020 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Click on indicator to activate target window (like tabs)
1 participant