codelite icon indicating copy to clipboard operation
codelite copied to clipboard

[Bug]: Find/replace dialog appears on wrong monitor

Open yunkot opened this issue 11 months ago • 5 comments

What happened?

Running CodeLite on Linux Mint 22 and Xorg using two monitors: left monitor is running in portrait orientation, right monitor is in standard orientation and is a primary monitor. CodeLite is running on left monitor.

Invoking Find/Replace dialog using Ctrl+F or using menu options shows the dialog on right monitor. Expected: Find/Replace dialog should appear on the same monitor where CodeLite is running.

Version

Commit 4c54143990f93ba4eb6cd14ccfc8cbc9bddd052e

Operating system

Linux Mint 22

yunkot avatar Jan 06 '25 23:01 yunkot

Also it seems that the Find/replace dialog remembers its dimensions - but not its position between CodeLite restarts - always pops up in upper left corner...

UffeJakobsen avatar Jan 09 '25 14:01 UffeJakobsen

QQ: once you move the "Find / Replace" dialog, does it remember its location (on the same session, i.e. you hit Ctrl-F move it around, hit ESCAPE, then Ctrl-F again) For me, on WSL/Ubuntu, it is always centered when I hit Ctrl-F (I see similar behavior for other dialogs as well). I am assuming that this is an issue with WSL windowing system, so I wondered if this is the case on "real" Linux env

eranif avatar Jan 14 '25 23:01 eranif

On Linux (Archlinux/LXQt) it remembers its location and sizing within the current session. Once CL is stopped and started again - it is back in the upper left corner (but its size is remembered across restarts)

A strange detail that may oy may not be related is the "Open Resource" dialog - at first it is in the upper left corner - at subsequent opens it is centered. It you open "Outline" dialog - and then go back and open "Open Resource" - it is back in the upper left corner on the first open - and centered after that

UffeJakobsen avatar Jan 14 '25 23:01 UffeJakobsen

@eranif : Actually, you are right, CL does seem to remember Find / Replace dialog position between restarts. Most likely, I've removed CodeLite settings folder, after which Find / Replace dialog appeared on wrong monitor, until I moved it back to correct location.

yunkot avatar Jan 15 '25 00:01 yunkot

Hmm it does not remember positions for me - I should go and make a separate issue - - apologies for polluting this issue :-)

UffeJakobsen avatar Jan 15 '25 10:01 UffeJakobsen