Skip to content

Scaling Priority should be set to 'both' by default #1136

@deerbone

Description

@deerbone

Problem

The current default scalingPriority is set to 'gdk' in src/configuration/modules/config/index.ts, which causes dropdown menus to position incorrectly when users have Hyprland monitor scaling enabled.

Note

Yes, this can already be mitigated by changing the value in the settings General > Scaling Priority, but I cannot find any reason why not to do this by default.

Current Behavior

With the default scalingPriority: 'gdk':

  • If a user has Hyprland scaling (e.g., 1.25x) but no GDK_SCALE set
  • Dropdown positioning calculations ignore the Hyprland scale factor
  • Dropdowns extend beyond the screen edge, especially for rightmost bar modules
  • Users cannot interact with off-screen elements

Reproduction Steps

  1. Set Hyprland monitor scaling on a monitor.
  2. Launch HyprPanel with default config
  3. Click on a dropdown menu from a module positioned on the rightmost side of the bar (e.g., notifications)
  4. Observe that the dropdown extends beyond the right screen edge

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions