notepad-plus-plus / notepad-plus-plus/notepad-plus-plus
[BUG] Search window moves every time Notepad++ opens with a non-standard taskbar positon
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 29.4k
- Forks
- 5.4k
- PR merge metrics
- No merged PRs in 30d
Description
Is there an existing issue for this?
- I have searched the existing issues
Description of the Issue
I have an issue related to my task bar, which is along the left side of the desktop. I believe I've had this issue for a very long time, but I just now realized it's not Notepad++ wanting its search window closer to the main window.
Every time Notepad++ closes and reopens, the search window's saved position moves to the left the width of the task bar. If I want the search window in the top right of my desktop, it will eventually touch my task bar after I close and reopen Notepad++ about 15 times.
I've had a similar issue with a handful of other programs over the years. Many programs tend to save window position one way but then use it in a different context when opening windows, or some part of "window code" doesn't know the difference between desktop position and monitor position.
Steps To Reproduce
- Move windows taskbar to left edge of screen
- Open Notepad++
- Open and move search window
- Close and reopen search window to verify position
- Close and reopen Notepad++
- Open search
Current Behavior
Saved position of the search window moves to the left every time Notepad++ opens
Expected Behavior
Search window stays in the same position across sessions
Debug Information
Notepad++ v8.7 (64-bit)
Build time : Sep 17 2024 - 17:06:31
Path : C:\Program Files\Notepad++\notepad++.exe
Command Line :
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
Periodic Backup : OFF
OS Name : Windows 10 Pro (64-bit)
OS Version : 22H2
OS Build : 19045.4894
Current ANSI codepage : 1252
Plugins :
ComparePlugin (2.0.2)
mimeTools (3.1)
NppConverter (4.6)
NppExec (0.8.8)
NppExport (0.4)
NppTextFX (1.4.1)
Anything else?
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with the Windows taskbar on the left, then trace the search window's saved-position handling and the code that converts coordinates when Notepad++ starts. Done means the search window remains at the same desktop position across repeated Notepad++ sessions, including with a non-standard taskbar position.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100