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

Do not trigger window resizing work if no change in dimensions #164

Merged
merged 4 commits into from Jan 24, 2019

Conversation

maxhora
Copy link

@maxhora maxhora commented Jan 22, 2019

Description

Extra triggering of window resizing on restoring from iconified state causes content rendering glitches described in #145
gui.appliedWidth and gui.appliedHeight introduced to keep last applied window width/height and avoid unnecessary resize of terminal content.
dpiScale is removed from calculation of actual window sizes and used once on initial calculation.
Changelist doesn't fix resize logic to avoid producing rendering glitches.

Fixes #145

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

  • SSH to a Linux box
  • Run tmux attach-session
  • Minimize then maximize the aminal window
  • Type "clear"
  • Detach (ctrl+b / d) and re-run tmux attach-session. Notice that the footer is back.

Test Configuration:

  • OS: Windows
  • OS version: 1809
  • Go version: go1.11.2 windows/amd64

Redundant dpiScale removed from GUI; dpiScale used to calculate desired size in pixels.
@maxhora maxhora self-assigned this Jan 22, 2019
@maxhora maxhora added this to In progress in Aminal v1.0 via automation Jan 22, 2019
@maxhora maxhora requested a review from liamg as a code owner January 22, 2019 16:10
Signed-off-by: Max Risuhin <risuhin.max@gmail.com>
@maxhora maxhora changed the title Do not trigger window resizing work if no change in dimensions [DO NOT MERGE] Do not trigger window resizing work if no change in dimensions Jan 22, 2019
@maxhora maxhora changed the title [DO NOT MERGE] Do not trigger window resizing work if no change in dimensions Do not trigger window resizing work if no change in dimensions Jan 22, 2019
@maxhora maxhora added the bug Something isn't working label Jan 22, 2019
liamg
liamg previously approved these changes Jan 24, 2019
@liamg liamg merged commit 2d2f4c9 into master Jan 24, 2019
Aminal v1.0 automation moved this from In progress to Done Jan 24, 2019
@liamg liamg deleted the bug/window-minimizing-rendering-145 branch July 30, 2021 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Aminal v1.0
  
Done
Development

Successfully merging this pull request may close these issues.

Bugs when minimizing and then maximizing on Windows
2 participants