Kinc icon indicating copy to clipboard operation
Kinc copied to clipboard

Window under Linux+Wayland does not get native screen pixels

Open tcdude opened this issue 1 year ago • 0 comments

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: ac733f5e
  • Kinc build output: the usual.. not important to the issue
  • Application output (if it runs): not important to the issue

tcdude avatar Jun 23 '24 23:06 tcdude