jonaburg / picom

A lightweight compositor for X11 (previously a compton fork)
Other
964 stars 99 forks source link

Directive "corner-radius" does not work #58

Open neruthes opened 3 years ago

neruthes commented 3 years ago

Platform

Gentoo (AMD64)

GPU, drivers, and screen setup

GPU: Intel CometLake-U GT2 [UHD Graphics]

GPU: NVIDIA GeForce MX250

x11-drivers/xf86-video-intel 2.99.917_p20201215

x11-drivers/nvidia-drivers 470.63.01

Laptop, builtin screen disabled, single external monitor as DP-1.

name of display: :1
display: :1  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Intel (0x8086)
    Device: Mesa Intel(R) UHD Graphics (CML GT2) (0x9b41)
    Version: 21.2.1
    Accelerated: yes
    Video memory: 3072MB
    Unified memory: yes
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) UHD Graphics (CML GT2)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 21.2.1
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 21.2.1
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 21.2.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

Environment

i3-gaps i3 version 4.19.1 (2021-02-01) © 2009 Michael Stapelberg and contributors

picom version

Extensions:

Misc:

Drivers (inaccurate):

Intel

Configuration:

opacity-rule = [
  "85:class_g = 'i3-frame'",
  "85:class_g = 'i3bar'",
#  "66:class_g = 'Alacritty' && !_NET_WM_STATE@:32a",
#  "22:class_g = 'i3bar'",
  "0:_NET_WM_STATE@[0]:32a *= '_NET_WM_STATE_HIDDEN'",
  "0:_NET_WM_STATE@[1]:32a *= '_NET_WM_STATE_HIDDEN'",
  "0:_NET_WM_STATE@[2]:32a *= '_NET_WM_STATE_HIDDEN'",
  "0:_NET_WM_STATE@[3]:32a *= '_NET_WM_STATE_HIDDEN'",
  "0:_NET_WM_STATE@[4]:32a *= '_NET_WM_STATE_HIDDEN'"
];

#################################
#             Corners           #
#################################
corner-radius = 10;
rounded-corners-exclude = [
#  "class_g = 'code'",
  "class_g = 'firefox'",
#  "class_g = 'Thunderbird'"
];
round-borders = 1.0;
#round-borders-exclude = [
  #"class_g = 'TelegramDesktop'",
#];

#shadow = false;
shadow = true;
shadow-opacity = 0.22;
shadow-radius = 60;
shadow-offset-x = -50;
shadow-offset-y = -30;
shadow-red = 0;
no-dock-shadow = true;
shadow-exclude = [
#  "name = 'Notification'",
  "class_g = 'fcitx'",
  "class_g = 'i3bar'",
  "class_g = 'i3-frame'",
  "_GTK_FRAME_EXTENTS@:c"
];
shadow-exclude-reg = "x10+0+0";

################
backend = "glx";
frame-opacity = 0;
blur-method = "kernel";
blur-size = 12;
blur-background = true;
blur-background-fixed = true;
blur-kern = "3x3box";
detect-rounded-corners = true;
detect-client-opacity = true;

Steps of reproduction

Run startx

xrdb -merge ~/.Xresources
i3 & picom --experimental-backends

(Unrelated stuff are removed)

Expected behavior

Corners should be rounded.

Current Behavior

No rounded corner at all.

Stack trace

(None)

Other details

image