notepad-plus-plus / notepad-plus-plus/notepad-plus-plus

[BUG] Search window moves every time Notepad++ opens with a non-standard taskbar positon

Open
#15,678 5 comments 0 reactions 0 assignees View on GitHub

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
  1. Move windows taskbar to left edge of screen
  2. Open Notepad++
  3. Open and move search window
  4. Close and reopen search window to verify position
  5. Close and reopen Notepad++
  6. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.