Modify ↓

Opened 3 weeks ago

Closed 3 weeks ago

Last modified 10 days ago

#25015 closed defect (fixed)

[PATCH] HouseNumberTaggingTool: dialog opens on wrong screen and focus is not returned to JOSM

Reported by: Till_btn Owned by: Till_btn
Priority: normal Milestone:
Component: Plugin HouseNumberTaggingTool Version:
Keywords: Cc:

Description

In a multi-monitor setup, the plugin dialog always opens on the primary screen and returns the focus to that screen after closing.

With the attached patch, the dialog is centered on the main frame of JOSM instead (TagDialog.java) and the focus for the map view is requested on closing (LaunchAction.java).

(Tested on Fedora 44, KDE Plasma, OpenJDK 27)

Attachments (2)

HouseNumberTaggingTool_dialog_position_focus.patch​ (2.3 KB ) - added by Till_btn 3 weeks ago.
HouseNumberTaggingTool_dialog_position_v2.patch​ (1.8 KB ) - added by Till_btn 3 weeks ago.

Download all attachments as: .zip

Change History (7)

comment:1 by stoecker, 3 weeks ago

I'm pretty sure there is code in JOSM for proper dialog opening and also position and size remembering. That's doesn't need to be redeveloped.

comment:2 by Till_btn, 3 weeks ago

Thanks for the hint, replaced it with setRememberWindowGeometry() which fixes both at once

comment:3 by stoecker, 3 weeks ago

Resolution: → fixed
Status: assigned → closed

In 36520/osm:

fix #25015 - dialog opens on wrong screen and focus is not returned to JOSM - patch by Till_btn

comment:4 by skyper, 10 days ago

Has the usage of milestone changed? I thought it is only used for core components and not for external stuff (imagery, plugins, presets, rules, etc.) nor for trac or the wiki.

comment:5 by stoecker, 10 days ago

Milestone: 26.12

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Till_btn.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.