Opened 5 weeks ago

Last modified 4 weeks ago

#18865 new bug

Should restore default window position when it starts out of screen (easy)

Reported by: slema Owned by: Zardshard
Priority: normal Milestone: R1/beta5
Component: Applications/Icon-O-Matic Version: R1/beta4
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

I changed my desktop from 4k to 1080 at some point. As a result the position for Icon-O-Matic kept opening out of screen. Visually I saw nothing. When I opened it from filetypes nothing happened apparently as it was indeed visible but outside of screen bounds.

I believe that if on app startup the window to be restored is out of maximum visible area the default size should be restored (this is what I did manually by going into the settings and deleting the settings file for icon-o-matic before restarting it).

Change History (7)

comment:1 by waddlesplash, 5 weeks ago

Component: User InterfaceApplications/Icon-O-Matic
Keywords: window position removed
Owner: changed from stippi to Zardshard

comment:2 by waddlesplash, 5 weeks ago

Milestone: UnscheduledR1/beta5

comment:3 by Zardshard, 5 weeks ago

This looks like it would make a good easy ticket.

Hint to whoever decides to take this up: figure out a way to get the screen's size, perhaps through BScreen::GetMode, and take that into account when updating fLastWindowFrame in IconEditorApp.cpp.

comment:4 by waddlesplash, 5 weeks ago

I think just a call to MoveOnScreen() should suffice?

comment:5 by Zardshard, 5 weeks ago

Ah, wasn't aware of that API. That should make it easier. You may need to update fLastWindowFrame after calling it.

comment:6 by Zardshard, 4 weeks ago

Can this be marked as easy?

comment:7 by pulkomandy, 4 weeks ago

Summary: Should restore default window position when it starts out of screenShould restore default window position when it starts out of screen (easy)
Note: See TracTickets for help on using tickets.