You are not logged in.

#1 2021-12-11 01:07:31

Cloudflash
Member
Registered: 2021-12-11
Posts: 14

Rounded window shadow rendering problem

I wonder if anyone found this problem?
Rounded corner windows will display abnormally under certain backgrounds (too bright or too dark) (just like on the picture)
Is it a shadow rendering problem or a graphics card driver problem?
Is there any solution?
My system information is
Operating System: Arch Linux
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2
Kernel Version: 5.15.7-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 4800H with Radeon Graphics
Memory: 30.8 GiB of RAM
Graphics Processor: AMD RENOIR
<img src = 'https://s3.bmp.ovh/imgs/2021/12/e33337d9cd2f722c.png' />
<img src = 'https://s3.bmp.ovh/imgs/2021/12/2c2436a9d0b5d823.png' />

Offline

#2 2021-12-11 07:58:17

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,173

Re: Rounded window shadow rendering problem

Is it a shadow rendering problem

Yes. (There're no "shadows", but some translucent gradients rendered around the windows that look "shadowish")

Likely solution is to get rid of CSD.
https://aur.archlinux.org/packages/gtk3-nocsd-git/
https://github.com/ZaWertun/gtk3-nocsd

Offline

#3 2021-12-11 10:50:50

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,464

Re: Rounded window shadow rendering problem

Does it happen with every app with csd and rounded corners?
Fome it works ok in chromium but not in firefox or thunderbird.


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#4 2021-12-11 12:13:55

Cloudflash
Member
Registered: 2021-12-11
Posts: 14

Re: Rounded window shadow rendering problem

kokoko3k wrote:

Does it happen with every app with csd and rounded corners?
Fome it works ok in chromium but not in firefox or thunderbird.

Unfortunately, every rounded window is like this

Offline

#5 2021-12-11 12:32:48

Cloudflash
Member
Registered: 2021-12-11
Posts: 14

Re: Rounded window shadow rendering problem

seth wrote:

Is it a shadow rendering problem

Yes. (There're no "shadows", but some translucent gradients rendered around the windows that look "shadowish")

Likely solution is to get rid of CSD.
https://aur.archlinux.org/packages/gtk3-nocsd-git/
https://github.com/ZaWertun/gtk3-nocsd

Thanks for your solution!
I installed gtk3-nocsd, created the .xsession file and added
export GTK_CSD=0
export LD_PRELOAD="/usr/lib/libgtk3-nocsd.so.0"
Then restart
But it doesn't seem to take effect.
The problem is still there.
Did i do something wrong?
=.=

Offline

#6 2021-12-11 12:38:36

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,173

Re: Rounded window shadow rendering problem

~/.xsession isn't necessarily sourced by your shell.

tr '\0' '\n' < /proc/$(pidof thunderbird)/environ

Offline

#7 2021-12-11 13:03:46

Cloudflash
Member
Registered: 2021-12-11
Posts: 14

Re: Rounded window shadow rendering problem

seth wrote:

~/.xsession isn't necessarily sourced by your shell.

tr '\0' '\n' < /proc/$(pidof thunderbird)/environ

also,I added the same in .zshrc

I used this instruction, but only got this
zsh: No such file or directory: /proc/environ

Offline

#8 2021-12-11 13:10:16

Cloudflash
Member
Registered: 2021-12-11
Posts: 14

Re: Rounded window shadow rendering problem

seth wrote:

~/.xsession isn't necessarily sourced by your shell.

tr '\0' '\n' < /proc/$(pidof thunderbird)/environ

sorry,Thunderbird was not running just now
I tried again
Got this
zsh: No such file or directory: 9224


9224 is the pid of thunderbird

Offline

#9 2021-12-11 13:50:02

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,173

Re: Rounded window shadow rendering problem

You've some stray blanks in there?

tr '\0' '\n' < /proc/9224/environ

Offline

#10 2021-12-11 14:04:05

Cloudflash
Member
Registered: 2021-12-11
Posts: 14

Re: Rounded window shadow rendering problem

seth wrote:

You've some stray blanks in there?

tr '\0' '\n' < /proc/9224/environ

so sorry. Looks yes
Now i get the correct output

DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DESKTOP_SESSION=plasma
DISPLAY=:0
GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/username/.gtkrc-2.0:/home/username/.config/gtkrc-2.0
GTK_CSD=0
GTK_IM_MODULE=gtk-im-context-simple
GTK_MODULES=canberra-gtk-module
GTK_RC_FILES=/etc/gtk/gtkrc:/home/username/.gtkrc:/home/username/.config/gtkrc
HOME=/home/username
KDE_APPLICATIONS_AS_SCOPE=1
KDE_FULL_SESSION=true
KDE_SESSION_UID=1000
KDE_SESSION_VERSION=5
LANG=en_US.UTF-8
LANGUAGE=en_US:en_US
LC_COLLATE=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_MONETARY=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LD_LIBRARY_PATH=/usr/lib/thunderbird
LD_PRELOAD=/usr/lib/libgtk3-nocsd.so.0
LOGNAME=username
MAIL=/var/spool/mail/username
MALLOC_OPTIONS=r
MESA_GLSL_CACHE_DIR=/tmp
MOTD_SHOWN=pam
MOZ_ASSUME_USER_NS=1
MOZ_HEADLESS=1
MOZ_LAUNCHED_CHILD=
MOZ_PROFILER_STARTUP=
NO_AT_BRIDGE=1
OLDPWD=/home/username
PAM_KWALLET5_LOGIN=/run/user/1000/kwallet5.socket
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/local/go/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
PWD=/home/username
QT_AUTO_SCREEN_SCALE_FACTOR=0
QT_IM_MODULE=fcitx
QT_SCREEN_SCALE_FACTORS=eDP=1;HDMI-A-0=1;
SESSION_MANAGER=local/Unknow:@/tmp/.ICE-unix/1102,unix/Unknow:/tmp/.ICE-unix/1102
SHELL=/bin/zsh
SHLVL=0
SYSTEMD_EXEC_PID=961
TMPDIR=/tmp
USER=username
XAUTHORITY=/home/username/.Xauthority
XCURSOR_SIZE=24
XCURSOR_THEME=Adwaita
XDG_CONFIG_DIRS=/home/username/.config/kdedefaults:/etc/xdg
XDG_CURRENT_DESKTOP=KDE
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=KDE
XDG_SESSION_ID=2
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
XDG_SESSION_TYPE=x11
XDG_VTNR=1
XMODIFIERS=@im=fcitx
XRE_BINARY_PATH=
XRE_PROFILE_LOCAL_PATH=
XRE_PROFILE_PATH=
XRE_RESTARTED_BY_PROFILE_MANAGER=
XRE_START_OFFLINE=
XUL_APP_FILE=
_=/usr/bin/startplasma-x11
__GL_ALLOW_FXAA_USAGE=0
force_s3tc_enable=true

Offline

#11 2021-12-11 14:39:02

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,173

Re: Rounded window shadow rendering problem

Please use code tags, https://bbs.archlinux.org/help.php#bbcode

The environment is correctly set, though.
Maybe you can lift the firefox setting?
https://wiki.archlinux.org/title/Firefo … dow_border

Offline

#12 2021-12-11 15:04:06

Cloudflash
Member
Registered: 2021-12-11
Posts: 14

Re: Rounded window shadow rendering problem

seth wrote:

Please use code tags, https://bbs.archlinux.org/help.php#bbcode

The environment is correctly set, though.
Maybe you can lift the firefox setting?
https://wiki.archlinux.org/title/Firefo … dow_border


I'm really sorry, I'm a novice, and I still can't use the forum proficiently

This may be a feasible solution. At the beginning I wanted to modify the configuration file to disable all shadows, but I did not find a valid configuration file. Because the problem is not only in firefox or thunderbird. Maybe I didn't explain it to you clearly. This problem exists in all applications. and I found the same problem from other people's desktops.
I think this is a bug
What we need is to solve this problem from the code
Do you think so?
But I still don’t know where to give feedback:(

Offline

#13 2021-12-14 22:08:59

AndroGR
Member
From: Athens, Greece.
Registered: 2021-10-15
Posts: 53

Re: Rounded window shadow rendering problem

seth wrote:

Is it a shadow rendering problem

Yes. (There're no "shadows", but some translucent gradients rendered around the windows that look "shadowish")

Likely solution is to get rid of CSD.
https://aur.archlinux.org/packages/gtk3-nocsd-git/
https://github.com/ZaWertun/gtk3-nocsd

Is there something similar for Plasma?


Arch | AMD Ryzen 5 1500X | AMD Radeon RX550 4GB | 16GB RAM (3200Mhz) | KDE Plasma | Linux Zen / Custom Kernel

Offline

#14 2021-12-15 05:57:04

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,464

Re: Rounded window shadow rendering problem

AndroGR wrote:
seth wrote:

Is it a shadow rendering problem

Yes. (There're no "shadows", but some translucent gradients rendered around the windows that look "shadowish")

Likely solution is to get rid of CSD.
https://aur.archlinux.org/packages/gtk3-nocsd-git/
https://github.com/ZaWertun/gtk3-nocsd

Is there something similar for Plasma?

Plasma does not uses csd, but if you want kwin to display squared corners, just switch window decoration style.


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

Board footer

Powered by FluxBB