Comments (15)
When wlr-randr
shows a scale factor of 1
, does the game then provide the correct resolution?
from labwc.
Yes it does. So how can I achieve both?
from labwc.
You ask the author of the game for proper scaling support, or you manually switch to unit scale before you start the game. wdisplays
is a helpful tool. I don't think this is a labwc problem.
from labwc.
Its not a single game, its all games with steam.
from labwc.
Then that sounds like a problem with Steam.
from labwc.
Just fyi. the problem doesn't exist on KDE Wayland session.
from labwc.
KDE is not a wlroots based compositor and they might very well have added workarounds for steam.
Have you tried any other wlroots based compositor, sway, hyprland, wayfire, etc?
from labwc.
It's come to my attention that Steam is an X11 application, and the problem you're seeing is common to all X11 applications with Xwayland.
from labwc.
Yes exactly and it makes labwc unuseable as desktop WM if you have a HiDPI screen. If I understand the settings correctly you are describing in the manual, the wlr-randr scale should not affect XWayland applications. For that purpose you have the xprop and GDK Scale options? Here is how KDE is doing it: https://wiki.archlinux.org/title/HiDPI#Xwayland_2
Also the scaling for apps like signal-desktop from flatpak looks much more crisp on KDE with scaling like this:
After reading some more this might actually not be fixable by labwc:
https://wiki.archlinux.org/title/HiDPI#Official_HiDPI_support
https://libreddit.oxymagnesium.com/r/linux_gaming/comments/1cj9dsf/the_elephant_in_the_room_scaling_on_hidpi_screens/l2eopdh/?context=3
https://wiki.archlinux.org/title/Steam/Troubleshooting#Blurry_text_and_graphics_with_Xwayland_and_HiDPI
from labwc.
If it's unusable, use something else. This is not a labwc issue.
from labwc.
While technically correct, this is kind of a wlroots / xwayland and thus labwc issue.
If I understand the settings correctly you are describing in the manual, the wlr-randr scale should not affect XWayland applications.
It will affect xwayland applications by wlroots scaling the xwayland buffers up by the scale factor. Thus they look blurry, there needs to be some solution in the longer term.
from labwc.
For games, using gamescope should be a viable workaround as it has built-in scaling options independent from labwc
from labwc.
For games, using gamescope should be a viable workaround as it has built-in scaling options independent from labwc
Sadly I haven't found a solution with gamescope which works for me. With capital width and height the game still doesn't offer the correct resolution in game or doesn't even start properly (the later is probably a problem of the game).
from labwc.
Might this solve this issue in the future? https://www.phoronix.com/news/XWayland-Rootful-HiDPI-Merged
Also is there any work on the integration of this or how does one check if rootful xwayland is supported by labwc?
from labwc.
rootful xwayland is supported by labwc (and should be the same for any other wayland compositor as its basically just a regular wayland client from what I remember):
Xwayland -decorate -noreset :55
DISPLAY=:55 dbus-run-session openbox-session
Rather than starting openbox-session
you could obviously start whatever you like.
Note that this will not show the windows within that X11 session in A-Tab
, render labwc decorations or similar. It might be fine to run that fullscreen for a single game though, never tested that approach and also can't say anything about the performance.
from labwc.
Related Issues (20)
- Set squared SSD corners when SSD client is tiled and notified about being tiled HOT 1
- Is it possible to disable the ALT+drag feature? HOT 2
- when use labwc as wayland compositor start sddm,Is it possible to enable qt6-virtualkeyboard HOT 10
- labwc won't start, plenty of errors HOT 8
- Wlopm failed to set power mode. HOT 24
- Pipe sub-menu doesn't obey menu.overlap.x, but only on the right HOT 1
- strange behavior of input method popup surface HOT 3
- Virtual keyboards? HOT 3
- Labwc doesn't respect the display rotation. HOT 1
- Child dialogs may be off-screen when their parents are HOT 3
- Black dot instead of application icon HOT 1
- Is it possible to set 'minimal' borders for applications in rc.xml? HOT 8
- Edit pixel buffers before rendering (Question) HOT 3
- Input to nano, the pop didn't follow the cursor in labwc7.2 HOT 9
- drawing tablet sampled at a much lower rate when using bluetooth with pressure sensitivity enabled HOT 8
- GoToDesktop with keyboard and mouse HOT 7
- middle click button and active applications? HOT 1
- Inhibit idle question HOT 2
- Debian Packaging - Fixing Terminal Recommends HOT 10
- Add user-configurable blocklist for the security-context implementation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from labwc.