注意:如果您不使用 Linux,则此模组不适合您。
“Wayland 是 X11 窗口系统协议和架构的替代品,旨在更易于开发、扩展和维护。”
随着 Wayland 合成器在 Linux 上的日益普及,包括多个桌面环境默认切换到 Wayland,应用程序对 Wayland 的支持使得 Linux 桌面体验更加完善。
虽然 Minecraft 可以在 XWayland 下运行,但诸如每显示器 HiDPI 缩放等功能无法正常工作。如果您遇到与 XWayland 相关的问题,那么此模组适合您。
要求
需要一个支持 Wayland 的 GLFW 安装,并添加以下 JVM 启动参数:
-Dorg.lwjgl.glfw.libname=/usr/lib/libglfw.so
要在 Arch Linux 上安装正确的 GLFW,请运行:
sudo pacman -S glfw-wayland
动机
在使用 Sway WM 配合 HiDPI 显示器后,我编写了此模组。所有通过 XWayland 运行的应用程序看起来都很模糊,因此这不是一个可行的选项。社区解决方案是 修补系统的 glfw,但我并不想这样做。
Bug 报告
如果在安装此模组后,您在 Wayland 下使用 Minecraft 时仍然遇到问题,且该问题尚未被报告过,请在 问题追踪器 提交 Bug 报告。
Note: if you do not use Linux, this mod is not for you
"Wayland is a replacement for the X11 window system protocol and architecture with the aim to be easier to develop, extend, and maintain."
With the increasing popularity of Wayland compositors on Linux, including several desktop environments switching to Wayland by default, application support for Wayland makes the Linux desktop experience all the better.
While Minecraft does run under XWayland, features like per-monitor HiDPI scaling do not function. If you experience problems related to XWayland, this mod is for you.
Requirements
A Wayland-supported system GLFW installation and the following JVM flag is required:
-Dorg.lwjgl.glfw.libname=/usr/lib/libglfw.so
To install the proper GLFW on Arch Linux, run:
sudo pacman -S glfw-wayland
Motivation
I wrote this mod after using Sway WM with a HiDPI display. All XWayland applications look blurry, so it is not an option. The community solution was to patch the system glfw, but I'd rather not do that.
Bug Reports
If you continue to experience problems with Minecraft on Wayland after installing this mod, file a bug report on the issue tracker if it hasn't already been reported.
评论 0
登录后参与评分
还没有评论,来抢沙发吧