linuxdeepin / treeland

14 stars 17 forks source link

[Feature]: solve X11 window blurring,HiDPI Scaling on treeland #302

Open lbwtw opened 2 weeks ago

lbwtw commented 2 weeks ago

SUMMARY | 功能概要

Introduce client level scale overrides. This allows for compositor managed different co-ordinate space between treeland's logical co-ordinate space and a client's logical co-ordinate space. allows us to set a DPI in xrdb and mark all xwayland windows as being 2x (or other) and avoid upscales for xwayland clients in a way that doesn't impact other wayland clients or require third-party changes. Right now only protocols used by Xwayland are covered. solve the problem of X11 application window blurring due to screen scaling on Treeland.

lbwtw commented 2 weeks ago

ref commit: https://github.com/vioken/waylib/commit/3423f814c6c8e4766762991c3fcda2ce4b864532 https://github.com/vioken/waylib/commit/d1e557366a64e95b991a27e8e68ded0dc60ba3f1 https://github.com/vioken/waylib/commit/4cd58ca5ebc568729c4d9cd2509e55810e18f054