Skip to content

Fix KDE tray window position on multi-monitor setups#362

Merged
kdroidFilter merged 1 commit intomasterfrom
fix/kde-tray-multimonitor-position
Feb 3, 2026
Merged

Fix KDE tray window position on multi-monitor setups#362
kdroidFilter merged 1 commit intomasterfrom
fix/kde-tray-multimonitor-position

Conversation

@kdroidFilter
Copy link
Owner

@kdroidFilter kdroidFilter commented Feb 3, 2026

Summary

  • Fix tray window opening at wrong position on KDE when system tray is on a non-primary display
  • Replace manual corner computation using primary display size (Toolkit.getDefaultToolkit().screenSize) with multi-monitor aware TrayClickTracker.updateClickPosition() which correctly resolves screen bounds via getScreenBoundsAt()

Fixes #347

Test plan

  • Test on KDE with multiple monitors where system tray is on a non-primary display
  • Verify tray window opens near the tray icon on the correct screen
  • Test on single-monitor setup to ensure no regression

Use multi-monitor aware TrayClickTracker.updateClickPosition() instead
of computing corner position from primary display size. This resolves
incorrect window positioning when the system tray is on a non-primary
display.

Fixes #347
@kdroidFilter kdroidFilter merged commit 2c29589 into master Feb 3, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TrayApp not opening near the tray icon on KDE

1 participant