- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 5
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
regression: resize/resizing window while command is executing is impartially felt by mc #4019
Comments
step1 aka before |
step 2&3 aka middle |
after step 5 |
Before [37ffc02] we had mc_global.tty.winch_flag that was set in sigwinch_handler(), than it checked some times (note: checked but no reset) and finally reset in dialog_change_screen_size().
Currently we have tty_got_winch() function that checks whether SIGWINCH was raised. But this function has side effect: the virtual SIGWINCH flag is reset after read. 'Virtual flag' means the non-emptiness of FIFO. If tty_got_winch() is sequentially called several times, only first call can return TRUE (FIFO was not empty at this moment), other calls return FALSE (read from an empty FIFO). Finally, dialog_change_screen_size() may not be called in dialog event loop in frontend_dlg_run(). Such case we have if SIGWINCH is raised while subshell is active.
I've tried fix that in
branch: 4019_resize_fix
But I'm afraid it is overcomplicated compared to using a simple variable before [37ffc02]. |
can't resist placing a big fat "told you so" here. :P
did something go wrong while committing the fix? what i see on trac cannot possibly be complete (two one-liners in two files, and it doesn't match the commit message). |
Replying to ossi:
Indeed. Sorry. Fixed. |
ok, patch doesn't look bad (disclaimer: i did not examine the whole context the code lives in). some observations:
|
Replying to ossi:
Commit message will be fixed before merge.
Fixed
Restored. |
I tried this https://github.com/MidnightCommander/mc/compare/4019_resize_fix.patch on top of 4.8.23.82.gb633256c7-1 and it works! Thank you. |
|
|
|
|
|
|
Important
This issue was migrated from Trac:
howaboutsynergy
window
,resize
What steps will reproduce the problem?
the panels are resized to the new window size
the panels are the same size as before the command in 2. got executed, but the lower bar (with the F1-F10 keys info) is resized correctly in the X direction.
(screenshots will be attached)
Note
Original attachments:
howaboutsynergy
onSep 19, 2019 at 15:21 UTC
howaboutsynergy
onSep 19, 2019 at 15:22 UTC
howaboutsynergy
onSep 19, 2019 at 15:23 UTC
The text was updated successfully, but these errors were encountered: