#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)
Change History (7)
by , 3 weeks ago
| Attachment: | HouseNumberTaggingTool_dialog_position_focus.patch added |
|---|
comment:1 by , 3 weeks ago
comment:2 by , 3 weeks ago
Thanks for the hint, replaced it with setRememberWindowGeometry() which fixes both at once
by , 3 weeks ago
| Attachment: | HouseNumberTaggingTool_dialog_position_v2.patch added |
|---|
comment:4 by , 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 , 10 days ago
| Milestone: | 26.12 |
|---|



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.