Minimizing The Window
Markpad version
2.7.6
How did you install it?
Windows — installer (Markpad_…_setup.exe)
OS and version
Windows 10
What happens, and what you expected instead
- Minimize button on the top right works odd.
- When I click on it, it firstly makes the app go to "windowed state", then minimizes it in a split second, but nevertheless, it's annoying.
- I don't know what triggers it, but it happens quite often.
Steps to reproduce
- Open the app in maximized screen.
- Click to the "minimize" button.
- The app firstly goes "windowed", then minimizes in a second fast, but visible.
- Finally, when I reopen it, I can see its "windowed state" clearly, but it goes maximized again. (See below.)
Screenshots, and anything else
Thanks. I can't reproduce this yet. Markpad draws its own title bar on Windows, and the minimize button only asks Windows to minimize the window, so I need to narrow down when it happens. A few questions:
- You said it happens quite often. Can you tell what is different on the times it doesn't happen? For example, right after starting Markpad, or after you have un-maximized and maximized it again.
- How was the window maximized: the maximize button, double-clicking the title bar, Win+Up, dragging it to the top of the screen, or was it already maximized when Markpad opened?
- Does the same flash happen if you minimize by clicking Markpad's taskbar icon or pressing Win+Down, instead of the minimize button?
- Do you use more than one monitor, or display scaling other than 100%?
- If you can, a short screen recording would help a lot. The thumbnail in your screenshot shows what the window looks like after it has gone to the taskbar, but not the flash itself.
1- To test it, I just click to the maximize button and the minimize button one by one. It happens 80% as shown in the screenshot I added before. I click nothing else, so I couldn't figure out its randomness. 2- I tried each of them (the maximize button, double-clicking, alt+tab), and the problem hasn't changed. 3- I think the problem is only on the minimize button. I've just tried the one you suggest, and the app minimizes smoothly, there is no problem when clicking to the icon on the taskbar. 4- One monitor, no additional display scaling. 5- Sorry, I have a low-end laptop; it can't handle it.
Thanks, that narrowed it down. Minimizing from the taskbar being smooth was the key: our minimize button asked the window library to minimize the window itself, while the taskbar asks Windows to do it. #784 makes our minimize and maximize buttons send Windows the same command the taskbar sends.
Could you try it before we merge?
- Download
app-bundle-windowsfrom the bottom of this page (you need to be signed in to GitHub): https://github.com/sftwrdotdev/Markpad/actions/runs/34969230834 - Unzip it. Inside is a single
.exe; there is nothing to install, and it uses your existing settings. - Fully close your installed Markpad first. Only one copy of Markpad runs at a time, so otherwise the test build would just switch to the window you already have open.
- Open the
.exe, maximize the window, and click the minimize button 10 times or so.
Does it still flash to the windowed size first? And does the maximize button still work normally?
Yes, it works well right now.