Skip to content

Window under Linux+Wayland does not get native screen pixels #876

@tcdude

Description

@tcdude

Describe the bug
When I retrieve the current display mode by initializing the display API before kinc_init and try to then open a window under wayland using that information, I get a window that is larger by the scaling factor I have set in my Window Manager (SwayWM) with scaled pixels.

To Reproduce
Steps to reproduce the behavior:

  1. Use Linux+Wayland+Sway
  2. Set the "Scale Factor" to something larger than 1
  3. Run any sample like EmptyKinc and compare the window size to the expected window size (requires toggling the window to floating mode)
  4. the window is "Scale Factor" larger than the specified dimension in Kinc

Expected behavior
Get a framebuffer with native resolution, regardless of the user set "Scale Factor"

Execution Environment:

  • Host system (where you compile your code): Linux
  • Target system (where you run your code): Linux+Wayland+SwayWM
  • IDE and/or compiler used: vscode
  • Kinc revision: ac733f5
  • Kinc build output: the usual.. not important to the issue
  • Application output (if it runs): not important to the issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions