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

PanFrame improvements #460

Merged
merged 3 commits into from
Mar 12, 2021
Merged

PanFrame improvements #460

merged 3 commits into from
Mar 12, 2021

Conversation

ThomasAdam
Copy link
Member

@ThomasAdam ThomasAdam commented Mar 7, 2021

This PR addresses some observations in #459:

  • Move the cursor to the correct screen edge when panning
  • Track panframes across global state better, by updating a core data structure.

@ThomasAdam ThomasAdam added this to the 1.0.3 milestone Mar 7, 2021
@ThomasAdam ThomasAdam self-assigned this Mar 7, 2021
When handling paging, seaprate out the logic more distinctly for where
the pointer should end up when panning; sometimes, the cursor would end
up near the middle of two displays which is fine for per-monitor mode,
but not for global.

Fixes #459
@ThomasAdam ThomasAdam changed the title ta/gh 459 PanFrame improvements Mar 7, 2021
When paging is initiated through the use of panframes, they are mapped
and unmapped accordingly.  When `DesktopConfiguration` is in `global`
mode (the default), the global state aggregated across all monitors is
updated.

This update didn't include the state of panwindows, which meant that
once someone had caused paging to happen enough time, panframes which
should have been mapped weren't.

Fixes #459
When calculating if the edge_thickness has changed, it's saved for
comparison and put back afterwards.  This wasn't happening in all cases
for per-monitor mode.
@ThomasAdam ThomasAdam marked this pull request as ready for review March 7, 2021 21:11
@ThomasAdam ThomasAdam merged commit bade4b1 into master Mar 12, 2021
@ThomasAdam ThomasAdam deleted the ta/gh-459 branch March 12, 2021 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant