HiDPI support meta-issue #797

Closed
SirCmpwn opened this Issue Jul 28, 2016 · 16 comments

Comments

Projects
None yet
8 participants
@SirCmpwn
Member

SirCmpwn 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

This comment has been minimized.

Show comment
Hide comment
@Hummer12007

Hummer12007 Jul 30, 2016

Contributor

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

Contributor

Hummer12007 commented Jul 30, 2016

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

@SirCmpwn

This comment has been minimized.

Show comment
Hide comment
@SirCmpwn

SirCmpwn Sep 5, 2016

Member

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

Member

SirCmpwn commented Sep 5, 2016

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

@mlofjard

This comment has been minimized.

Show comment
Hide comment
@mlofjard

mlofjard Nov 28, 2016

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.

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

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost 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).

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

This comment has been minimized.

Show comment
Hide comment
@wmww

wmww 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?)

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

This comment has been minimized.

Show comment
Hide comment
@handijk

handijk 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

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

@SirCmpwn

This comment has been minimized.

Show comment
Hide comment
@SirCmpwn

SirCmpwn May 19, 2017

Member

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

Member

SirCmpwn commented May 19, 2017

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

This comment has been minimized.

Show comment
Hide comment
@Enerccio

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

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 ..
@SirCmpwn

This comment has been minimized.

Show comment
Hide comment
@SirCmpwn

SirCmpwn May 20, 2017

Member

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

Member

SirCmpwn commented May 20, 2017

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

@Enerccio

This comment has been minimized.

Show comment
Hide comment
@Enerccio

Enerccio May 20, 2017

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

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

@handijk

This comment has been minimized.

Show comment
Hide comment
@handijk

handijk May 23, 2017

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

handijk commented May 23, 2017

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

@Hummer12007

This comment has been minimized.

Show comment
Hide comment
@Hummer12007

Hummer12007 May 30, 2017

Contributor

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

Contributor

Hummer12007 commented May 30, 2017

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

@SirCmpwn

This comment has been minimized.

Show comment
Hide comment
@SirCmpwn

SirCmpwn Nov 22, 2017

Member

The hidpi branch was merged, just use stable releases.

Member

SirCmpwn commented Nov 22, 2017

The hidpi branch was merged, just use stable releases.

@main--

This comment has been minimized.

Show comment
Hide comment
@main--

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

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.

@likyng

This comment has been minimized.

Show comment
Hide comment
@likyng

likyng 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

likyng 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

@SirCmpwn

This comment has been minimized.

Show comment
Hide comment
@SirCmpwn

SirCmpwn Jun 23, 2018

Member

This is done 🎉

Member

SirCmpwn commented Jun 23, 2018

This is done 🎉

@SirCmpwn SirCmpwn closed this Jun 23, 2018

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