Bug: Search dialog height in Wine not saved/loaded

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
il--ya
Junior Member
Junior Member
Posts: 6
Joined: 2019-05-15, 11:04 UTC

Bug: Search dialog height in Wine not saved/loaded

Post by *il--ya »

I noticed that search dialog in Wine always opens with minimal height (search result pane completely collapsed).
When I manually resize/move this dialog and then close, I can see that SearchX, SearchY and SearchDX values under [1920x1080 (8x16)] in wincmd.ini are updated. However, SearchDY value never changes.
It looks like this parameter is never read/applied, and not saved, at least under Wine.
I'm using Ubuntu 20.04 and wine 5.0.
Total Commander version 9.51 64-bit.
il--ya
Junior Member
Junior Member
Posts: 6
Joined: 2019-05-15, 11:04 UTC

Re: Bug: Search dialog height in Wine not saved/loaded

Post by *il--ya »

For some reason, after I reported the issue, I was able to open the dialog normally, and after that the height was saved back to a file. I have checked several times, SearchDY was updated when I changed the height of the dialog and exited with <Esc> key. Then I tried in another panel, and it was loaded collapsed again, and not saving SearchDY. Then for some reason it started saving again. So this issue seems to be very intermittent and/or dependent on some other factor.
Also I noticed that when it does manage to save the height, that height is gradually reduced by 19 pixel. So I just press alt+F7, esc - and SearchDY goes down by 19 pixel. Open next time, and the dialog is indeed shorter.
I'll try to narrow down to get more reliable steps to reproduce the issue.
il--ya
Junior Member
Junior Member
Posts: 6
Joined: 2019-05-15, 11:04 UTC

Re: Bug: Search dialog height in Wine not saved/loaded

Post by *il--ya »

OK, now I understand better understand what happened.

When there are no results in the search window, it is supposed to look like this, and searchDY is ignored:
Image: https://i.imgur.com/ZiqDEwE.png
What I see instead, and what confused me, was this chopped window:
Image: https://i.imgur.com/XiU48ax.png

I think there is something wrong with calculation of the "empty" dialog height under Wine/gnome, maybe because of the extra space for the "shadow" around the window. Also, the dialog is not locked and can be resized, which leads to invalid rendering:
Image: https://i.imgur.com/iEv09sc.png

Also, if the dialog is resized this way and I switch to another tab, it shrinks back to a "chopped" version.

When there are search results, the window opens normally, but with each open/close iteration it's height is reduced by 19 pixel, probably because of the same miscalculation issue.

My conclusion is that it's not critical. I'll see if I can remove the "shadow" around windows and see if that helps.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50561
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Bug: Search dialog height in Wine not saved/loaded

Post by *ghisler(Author) »

The window is meant to be unresizeable when there are no search results, at least that's how it works in Windows. I guess that the wrong size happens because the title bar is part of the program in Windows, but part of the window manager on Linux.
Author of Total Commander
https://www.ghisler.com
Post Reply