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

HiDPI support meta-issue #797

Closed
10 tasks done
ddevault opened this issue Jul 28, 2016 · 16 comments
Closed
10 tasks done

HiDPI support meta-issue #797

ddevault opened this issue Jul 28, 2016 · 16 comments

Comments

@ddevault
Copy link
Contributor

ddevault commented Jul 28, 2016

  • Specify scale in output command
  • Pass scale factor to wlc
  • Screenshots
  • Client-side support
    • swaybg
    • swaybar
    • swaylock
  • Window borders
  • swaybg given the wrong size on the screen
  • gaps
@Hummer12007
Copy link
Contributor

Gaps are 2x bigger on hidpi (should be scaled).

@ddevault
Copy link
Contributor Author

ddevault commented Sep 5, 2016

Client-side support done as of 0913eff...af44154

@mlofjard
Copy link

I get mouse cursor size issues when adding scale 2x to my config. On the title bar and background surfaces the mouse cursor is really tiny (not scaled at all), and in urxvt or weston-terminal (i.e. both wayland and xwayland apps) the mouse cursor is 4x the size. I dont get the correct size of the cursor anywhere.

@ghost
Copy link

ghost commented Jan 20, 2017

I have mouse cursor scale issues without any scaling specified in my config. Above Qt clients (qutebrowser, qtcreator) it appears double the expected size, anything not-Qt is ok (xterm, wlterm, chromium, firefox).

@wmww
Copy link
Contributor

wmww commented May 8, 2017

Programs running in XWayland are scaled correctly, but this is done (presumably) by rendering them at a low resolution and scaling them up because they are all low res and bury. A better solution would be to render them at full resolution with the proper HiDPI X11 settings or even have some mechanism to choose between the two options (since not everything works well on HiDPI). I know this is possible because Gnome does it and everything looks great. I'm willing to help implement this if you point me in the right direction.

(btw, is this the right place or should I start a new issue?)

@handijk
Copy link

handijk commented May 19, 2017

Choosing between the two options does not seem possible, see: Enerccio/ewlc#82
I have created an issue to allow for setting a global DPI for xwayland in ewlc, see: Enerccio/ewlc#99

@ddevault
Copy link
Contributor Author

Note that sway doesn't use ewlc. If you'd like to see XWayland DPI improvements in Sway, they should be submitted to wlc.

@Enerccio
Copy link

Enerccio commented May 20, 2017

@SirCmpwn sway can be build with ewlc (tested):

cmake -DWLC_LIBRARIES=<ewlc-path>/target/src/libewlc.so -DWLC_INCLUDE_DIRS=<ewlc-path>/include ..

@ddevault
Copy link
Contributor Author

That doesn't surprise me, but we're still not switching right now.

@Enerccio
Copy link

Of course, I mean more in a way that optionally someone can do it themselves

@handijk
Copy link

handijk commented May 23, 2017

I have submitted an issue to wlc also, Cloudef/wlc#268

@Hummer12007
Copy link
Contributor

Gnome is planning to implement fractional scaling: https://blogs.gnome.org/mclasen/2017/05/19/fractional-scaling-goes-east/

@ddevault
Copy link
Contributor Author

The hidpi branch was merged, just use stable releases.

@main--
Copy link

main-- commented Nov 22, 2017

By the way, I would love to have a way that disables all upscaling of non-highdpi-aware applications while still correctly telling the others about scale factors and scaling them down on non-highdpi displays (what you described in swaywm/wlroots#329).

Right now I have highdpi disabled even for my 4k monitor because I strongly prefer hard-to-read over blurry.

@nimarb
Copy link

nimarb commented Jun 9, 2018

Would it be possible that sway renders xwayland windows at 1x, even if scale=2 is set in the sway config? Then, scaling could be set within x11 so that xwayland windows (with scaling support) will be rendered crisply?

Edit: I guess this is covered in #1047

@ddevault
Copy link
Contributor Author

This is done 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

8 participants