AltSnap icon indicating copy to clipboard operation
AltSnap copied to clipboard

Maximise toggle doesn't work in this app

Open xaryangupta opened this issue 4 years ago • 17 comments
trafficstars

There's an app called FluentSearch and it's the only one among what I've tested that's not working well with maximise toggle (which Ive set to win+left mouse) So it does maximise the window but doesnt minimise on being clicked again...It might be the app's fault cos it uses a very custom styled window

xaryangupta avatar Sep 25 '21 01:09 xaryangupta

Did you disable the Resize all windows option? if yes does it work with it enabled? Send me the STYLE: value you can get using the find windows option for the FluentSearch window both normal and maximized. Maybe the programs disables the WS_THICKFRAME (0x40000) when it is maximized. In this case the fix is easy, just add the window to the Aresize list in the [Blacklist] section of AltSnap.ini

RamonUnch avatar Sep 25 '21 06:09 RamonUnch

image

xaryangupta avatar Sep 25 '21 07:09 xaryangupta

Fluent Search Settings|Avalonia-922c042b-6207-4c6a-8187-879f2951e995

xaryangupta avatar Sep 25 '21 08:09 xaryangupta

Was the Fluent Search window maximized when you identified it? It seems not to be the case from the STYLE value, however there is indeed the WS_THICKFRAME flag. I would like to see this when the window is maximized. Did you try to add Fluent Search Settings|Avalonia-922c042b-6207-4c6a-8187-879f2951e995 to the AResize blacklist in the ini file?

RamonUnch avatar Sep 25 '21 09:09 RamonUnch

Ok, so I wasn't as sure of this bug but AltSnap is randomly closing itself after some time

xaryangupta avatar Sep 25 '21 10:09 xaryangupta

Fluent Search Settings|Avalonia-e67e1121-60e1-4c50-89f9-4e37ae7b9b5f

xaryangupta avatar Sep 25 '21 11:09 xaryangupta

image when maximised

xaryangupta avatar Sep 25 '21 11:09 xaryangupta

image

xaryangupta avatar Sep 25 '21 11:09 xaryangupta

No this didnt work... Also added the second one... but again nothing

xaryangupta avatar Sep 25 '21 11:09 xaryangupta

Strange according to the STYLE flag, the window should be restorable. If you want to include all possible Fluent windows in the blacklist you need to use Fluent Search Settings|Avalonia-* because apparently it generate a random value at startup. but it should not work, I will see when a have more time.

RamonUnch avatar Sep 25 '21 15:09 RamonUnch

Ok, so I wasn't as sure of this bug but AltSnap is randomly closing itself after some time

Can you trigger it? does it happen even when you are not using the computer?

RamonUnch avatar Sep 25 '21 15:09 RamonUnch

I'm not sure what causes it.. but it seems to happen if I leave the system idle? I'm not sure at all

xaryangupta avatar Sep 25 '21 19:09 xaryangupta

Under win 8/10 there were problems with the tray icon that I eventually fixed. You can try to hide the tray that is maybe the culprit

RamonUnch avatar Sep 25 '21 20:09 RamonUnch

I didn't understand "hiding the tray" but it's happening after some time, not particularly when the system's idle. It just closes itself. I don't see any crashing logs in Event Viewer as well.

xaryangupta avatar Sep 26 '21 12:09 xaryangupta

You can hide the tray using the tray menu, You could maybe run for a while with the debug version: AltSnap1.47test22x64debug.zip

You have to open a command prompt in the folder, and type: gdb.exe AltSnap.exe Then gdb (the debugger) will start and you have to type the r command to run the program at this moment altdrag will start and you can use your computer normally, a lot os messages will be displayed in the console that you must not close but you can ignore them until the point AltSnap crashes, at this moment i will be interested by the latest lines of the debug log. Note that usually the debugger will lock AltSnap state and thus lock the mouse, so once the mouse freeze, you have to alt+tab to the command prompt ant hit the c (for continue) command in the debug console until altdrag compleatly terminate. then send me the last lines of the debug log.

RamonUnch avatar Sep 26 '21 15:09 RamonUnch

@xzayn I am using the portable version of Fluent Search on Win10 21H1 and I cannot reproduce your bug, I can maximize and restore the window, both with double click of the maximize action or by dragging it to the top. Give me your .ini file, I have no problems with this app with whichever config I try.

RamonUnch avatar Sep 27 '21 07:09 RamonUnch

@xzayn When you are unable to restore this window does pressing ESC makes it restoreable again? I think I may have spotted the problem.

RamonUnch avatar Feb 02 '22 13:02 RamonUnch

unable to reproduce and no feedback

RamonUnch avatar Nov 21 '23 10:11 RamonUnch