Opened 10 years ago

Closed 10 years ago

#822 closed defect (fixed)

main window positioned off-screen on startup

Reported by: blakew Owned by:
Priority: major Milestone:
Component: editor Version: 0.54
Keywords: Cc:


The Padre main window wasn't appearing on my desktop although running normally. Minimizing/maximizing from the tray didn't work.

I found that the fields main_top and main_left in the host_config table in config.db were set to arbitrary negative numbers (-320000 I think) - changing these to sane numbers (0) positioned the frame as expected and solved the problem. I don't know what caused the problem.

A patch is attached which adds an additional check in Padre/Wx/Main?.pm - apparently the inherited wxwidgets method IsShownOnScreen? doesn't have this check. With this the frame is restored to the center of the screen and the database updates the proper values.

I've also found applying really large numbers in main_top and main_left cause the same issue, which won't be caught with this patch as I don't know how to access the screen dimensions.

Wx Version=(0.96) wxWidgets 2.8.10 unicode=(1)
Wx::Demo - ok
Strawberry Perl 5.10.1 (Windows XP 32-bit)

Attachments (1)

822.patch (965 bytes) - added by blakew 10 years ago.

Download all attachments as: .zip

Change History (2)

Changed 10 years ago by blakew

comment:1 Changed 10 years ago by Sewi

  • Resolution set to fixed
  • Status changed from new to closed

Applied with r10266 - sorry for the delay!

Note: See TracTickets for help on using tickets.