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: fix getMainWindowSize values if console tab is not in focus (hidden) #6438

Merged
merged 5 commits into from
Nov 27, 2022

Conversation

Edru2
Copy link
Member

@Edru2 Edru2 commented Nov 23, 2022

Brief overview of PR changes/additions

Trying to fix wrong getMainWindowSize values if console is hidden,
for example when another console tab is in focus

Motivation for adding to Mudlet

Other info (issues closed, discussion etc)

should fix #5960

use old values if console is hidden
@add-deployment-links
Copy link

add-deployment-links bot commented Nov 23, 2022

Hey there! Thanks for helping Mudlet improve. 🌟

Test versions

You can directly test the changes here:

No need to install anything - just unzip and run.
Let us know if it works well, and if it doesn't, please give details.

@mudlet-machine-account mudlet-machine-account added this to the 4.17.0 milestone Nov 23, 2022
src/TConsole.cpp Outdated Show resolved Hide resolved
@Edru2 Edru2 marked this pull request as ready for review November 23, 2022 21:09
@Edru2 Edru2 requested a review from a team as a code owner November 23, 2022 21:09
@Edru2 Edru2 requested a review from a team November 23, 2022 21:09
@vadi2
Copy link
Member

vadi2 commented Nov 24, 2022

@gesslar does this work better for your UI?

@gesslar
Copy link

gesslar commented Nov 24, 2022

Does the link to the PTB above always point to the latest commit build? I can dl it and try it.

@vadi2
Copy link
Member

vadi2 commented Nov 24, 2022

Yep, you are good to go -

image

@gesslar
Copy link

gesslar commented Nov 24, 2022

I'm testing it now to see what happens when I switch back.

@gesslar
Copy link

gesslar commented Nov 24, 2022

Seems to be working! 👍

Copy link
Member

@vadi2 vadi2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Edru2!

src/TConsole.cpp Outdated Show resolved Hide resolved
@Kebap Kebap changed the title fix getMainWindowSize values if console tab is not in focus (hidden) Fix: fix getMainWindowSize values if console tab is not in focus (hidden) Nov 24, 2022
add suggested change

Co-authored-by: Vadim Peretokin <vperetokin@hey.com>
SlySven added a commit to SlySven/Mudlet that referenced this pull request Nov 25, 2022
The lua code put in there was trying to use this new event to force a
redraw of Geyser widgets when a profile hidden during multi-playing when
multi-view was not in use. This was an attempt to solve Mudlet#5960. However it
seems the problem was with faulty reading of the `TMainConsole` size whilst
it was being shown. That appears to have been solved by a different PR:
Mudlet#6438 that is waiting to be merged into the code-base. As such the tweaking
with the lua file will not be required.

Signed-off-by: Stephen Lyons <slysven@virginmedia.com>
@SlySven SlySven merged commit d5a116f into Mudlet:development Nov 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Geyser widgets not updating properly when profile tab is not the focus
5 participants