Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tcdude opened this issue Jun 23, 2024 · 0 comments
Open

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

tcdude opened this issue Jun 23, 2024 · 0 comments

Comments

@tcdude
Copy link
Contributor

tcdude commented Jun 23, 2024

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
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

No branches or pull requests

1 participant