Skip to content

Main window geometry is wrong if started minimized #3440

@CrendKing

Description

@CrendKing

Describe the bug
If CopyQ is started minimized, the initial main window geometry is wrong.

To Reproduce

  1. cmd /c start /min "" copyq
  2. Use either the tray icon or tray menu's Show/Hide to bring the main window up.
  3. Notice that the window shows up only in the taskbar but nowhere on the desktop.
  4. Use other tool like System Informer to inspect the windows of copyq.exe, and notice that the main window (Qt683QWindowIcon) is spawned at (-32000, -32000) with no width and height.
  5. Same effect can be observed by creating shortcut to copyq.exe and set "Run" to "Minimized".

Expected behavior
The main window geometry should not be affected by whether the process is started minimized or not. It should always be visible when brought up.

Screenshots

Image

Version, OS and Environment

CopyQ Clipboard Manager 13.0.0
Qt: 6.8.3
KNotifications: 6.12.0
Compiler: MSVC
Arch: x86_64-little_endian-llp64
OS: Windows 11 Version 25H2
Installation method: portable zip

Additional context

  1. The behavior can be reproduced with no user config.
  2. I tried to set restore_geometry=false according to window placement issue in multi-mon environment #1595 to no avail.
  3. Log files after setting COPYQ_LOG_LEVEL=DEBUG, one for start normal and one for start minimized, following the steps in the reproduction section.

Start Normal.log
Start Minimized.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions