Code Monkey home page Code Monkey logo

picom's People

Contributors

9ary avatar airlied avatar avi-d-coder avatar brottweiler avatar chjj avatar cworth-gh avatar danakj avatar davidschlachter avatar dylanaraps avatar einars avatar ibhagwan avatar jauler avatar jbeich avatar jhcloos avatar kapsh avatar keith-packard avatar liskin avatar misterda avatar nwnk avatar psychon avatar quequotion avatar resloved avatar richardgv avatar sdhand avatar tatokis avatar tilman2 avatar tryone144 avatar unixparadigm avatar xecycle avatar yshui avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

picom's Issues

How can I prevent right click menu from having round corners in Firefox?

Platform

Manjaro Linux x86_64

GPU, drivers, and screen setup

GPU: Intel HD Graphics 6000
Video driver: Intel Corporation HD Graphics 6000

$ glxinfo -B
name of display: :1
display: :1  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Intel Open Source Technology Center (0x8086)
    Device: Mesa DRI Intel(R) HD Graphics 6000 (Broadwell GT3)  (0x1626)
    Version: 19.2.7
    Accelerated: yes
    Video memory: 3072MB
    Unified memory: yes
    Preferred profile: core (0x1)
    Max core profile version: 4.5
    Max compat profile version: 3.0
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.1
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 6000 (Broadwell GT3) 
OpenGL core profile version string: 4.5 (Core Profile) Mesa 19.2.7
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 3.0 Mesa 19.2.7
OpenGL shading language version string: 1.30
OpenGL context flags: (none)

OpenGL ES profile version string: OpenGL ES 3.1 Mesa 19.2.7
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10

Environment

Compton version

Compton configuration:

corner-radius: 7;

rounded-corners-exclude = [
    "class_g = 'polybar'",
    "window_type = 'dock'"
];

fading = true;
fade-delta = 3;
fade-in-step = 0.03;
fade-out-step = 0.03;

Steps of reproduction

  1. Open up Firefox
  2. Right click on a webpage
  3. The righ click menu has round corners

Expected behavior

Would be nice not to have round corners

Current Behavior

It currently has round corners

Other details

new

The inactive-dim effect has no rounded corners

Platform

Manjaro

GPU, drivers, and screen setup

Intel UHD Graphics 620 (mesa 20.1.3-1)
NVIDIA Geforce MX250 (nvidia-440xx-utils 440.100-1 and nvidia-prime 1.0-4)

Environment

i3-gaps

picom version

Version: vgit-a9977

Extensions:

  • Shape: Yes
  • XRandR: Yes
  • Present: Present

Misc:

  • Use Overlay: No (Another compositor is already running)
  • Config file used: /home/jp/.config/picom/picom.conf

Drivers (inaccurate):

modesetting

Configuration:

# Shadow
shadow = true;
shadow-radius = 15;
shadow-offset-x = -15;
shadow-offset-y = -15;
shadow-opacity = 0.70;

# Fading
fading = true;
fade-in-step = 0.10;
fade-out-step = 0.10;
fade-exclude = [ ]

# Corners
corner-radius = 5;
rounded-corners-exclude = [
    "class_g = 'polybar'",
    "class_g = 'i3bar'"
];

inactive-dim = 0.2;

Steps of reproduction

  1. Add corner-radius
  2. Add inactive-dim

Expected behavior

The inactive-dim effect should also have rounded corners.

Current Behavior

The effect has no rounded corners on windows with rounded corners.

Other details

2020-07-24_01:50:21

Rounded corners gives large frames

Configuration:

experimental-backends = true
backend = "glx"
shadow = true
shadow-offset-x = -12
shadow-offset-y = -6
shadow-radius = 12
shadow-opacity = 0.30
inactive-opacity = 0.7
frame-opacity = 0.0

corner-radius = 0
opacity-rule = [
  "60:class_g = 'St' && !focused"
];

round-borders = 1
round-borders-rule = [
  "3:window_type = 'unknown'",
  "3:window_type = 'toolbar'",
  "3:window_type = 'utility'",
  "3:window_type = 'splash'",
  "3:window_type = 'dialog'",
  "3:window_type = 'normal'"
];

blur: {
  method = "dual_kawase";
  strength = 10;
  background = false;
  background-frame = false;
  background-fixed = false;
}

Steps of reproduction

Ideally I'd want to add corner-radius = 12 into here instead, but when I do I get thick frames / borders (thicker than frame-opacity = 1) - blue around the focused window, grey around the others.

Apologies if this just needs a config option I'm not familiar with, but it feels like a bug. Any help would be appreciated.

Memory leak.

This fork seems to have a memory leak.

Specs:

  • Nvidia GTX 1050
  • Intel Pentium G4560
  • 8G ram
  • arch linux btw

(btw I've had this issue for a while, it's not an issue with the most recent pr)

A memory log thing I made the other day. I once had it reach 600+ M used (Or was it 200M, I think it was 600M but I can't find a screenshot of it.)

I used the command pmap <compton PID> > <file> to get the memory usage.

>> tail -n 1 ~/opt/compton*
==> /home/cat/opt/compton-2019-12-18_05-19am.txt <==
 total            64252K

==> /home/cat/opt/compton-2019-12-18_05-26am.txt <==
 total            66668K

==> /home/cat/opt/compton-2019-12-18_05-36am.txt <==
 total            71752K

==> /home/cat/opt/compton-2019-12-18_05-56am.txt <==
 total            78796K

Screen tearing xrender backend.

Hi, I have intel UHD 620 and I notice massive screen tearing when running the xrender backend, I want to run it for the rounded corners. Is there any fix for that, or is it just a bug? Thank you.

AwesomeWM window border color bug

Hey, thanks for this fork! Rounded borders are really nice.

Platform

ArchLinux

GPU, drivers, and screen setup

Hybrid setup via optimus-manager:

  • Intel graphics via Core i7-3840QM, xf86-video-intel 1:2.99.917+906+g846b53da-1
  • NVIDIA Quadro K2000M, nvidia drivers 440.82

On device boot I select the graphic card to use. The problem happens with both settings.

glxinfo -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 2048 MB
    Total available memory: 2048 MB
    Currently available dedicated video memory: 1762 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: Quadro K2000M/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 440.82
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6.0 NVIDIA 440.82
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)

OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 440.82
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

Environment

I use an LXDE session with AwesomeWM 4.3

picom version

vgit-1f8eb

picom --diagnostics
**Version:** vgit-1f8eb

### Extensions:

* Shape: Yes
* XRandR: Yes
* Present: Present

### Misc:

* Use Overlay: No (Another compositor is already running)
* Config file used: /home/manu/.config/picom/picom.conf

### Drivers (inaccurate):

NVIDIA, modesetting  

Configuration:

Picom configuration
backend = "glx";

glx-no-stencil = true;
glx-copy-from-front = false;
shadow = true;
shadow-radius = 5;
shadow-offset-x = -5;
shadow-offset-y = -5;
shadow-opacity = 0.75;
shadow-ignore-shaped = false;

inactive-opacity = 1;
active-opacity = 1;
frame-opacity = 1;
inactive-opacity-override = false;

blur-background-fixed = false;
blur-background-exclude = [
    "window_type = 'dock'",
    "window_type = 'desktop'"
];

fading = false;
fade-delta = 4;
fade-in-step = 0.03;
fade-out-step = 0.03;
fade-exclude = [ ];

mark-wmwin-focused = true;
mark-ovredir-focused = true;
use-ewmh-active-win = true;
detect-rounded-corners = true;
detect-client-opacity = true;

refresh-rate = 0;

vsync = true;

dbe = false;

unredir-if-possible = false;

focus-exclude = [ ];

detect-transient = true;
detect-client-leader = true;

# available types: "unknown", "desktop", "dock", "toolbar", "menu", "utility", "splash",
# "dialog", "normal", "dropdown_menu", "popup_menu", "tooltip", "notify", "combo", and "dnd".
wintypes:
{
    menu = { shadow = false; };
    dropdown_menu = { shadow = false; };
    popup_menu = { shadow = false; };
    tooltip = { shadow = false; };
};

xrender-sync-fence = true;

corner-radius = 6

Steps of reproduction

  1. Launch a few windows side by side from any app (for example, 3 terminal windows)
  2. Switch window focus a few times

Expected behavior

The windows border colors should take the colors defined in my window manager (AwesomeWM): when they are focused, border colors should change, when they lose focus, border colors should change.

Current Behavior

The windows border colors randomly take the config from my window manager (AwesomeWM). They often are not the colors they should be: borders are set to variants of gray.

Other details

The problem only happens in this fork, with rounded corners set. If I set corner-radius = 0 in config, there is no bug. Using --experimental-backends removes the rounded corners.

The problem doesn't seem to be related to my AwesomeWM config, as it happens also with the default rc.lua config.

Here is a screenshot of what should happen: the non-focused window should have my theme's non-focused border color (really dark blue) and the focused one should be yellow:

okay

Here is a screenshot of what happens: randomly, the non-focused, or focused window border colors are set to a dark or light gray, not coming from my theme. When I'm lucky, the focus color from my theme, yellow, is set, but it's often not:

not-okay

Thanks!

No corner radius

Platform

Ubuntu Desktop 18.04 amd64

GPU, drivers, and screen setup

boring laptop, Lenovo L480

Environment

xdm, dwm, st

picom version

Version: vgit-e3c47

Extensions:

  • Shape: Yes
  • XRandR: Yes
  • Present: Present

Misc:

  • Use Overlay: Yes
  • Config file used: /home/maxim/.config/picom.conf

Drivers (inaccurate):

Intel

Configuration:

backend = "glx";
glx-no-stencil = true;
glx-copy-from-front = false;
glx-swap-method = 1;
blur-background = true;
blur-kern = "7x7box";

#border-radius = 12;
use-damage = false; 

# Shadow
shadow = true;			# Enabled client-side shadows on windows.
#clear-shadow = true;		# Zero the part of the shadow's mask behind the window (experimental).
shadow-radius = 10;		# The blur radius for shadows. (default 12)
shadow-offset-x = -15;		# The left offset for shadows. (default -15)
shadow-offset-y = -15;		# The top offset for shadows. (default -15)
shadow-opacity = 0.5;
shadow-exclude = [
 #"! name~=''",
 #"n:e:Notification",
 "n:e:Dunst",
 #"g:e:Conky",
 "n:w:Firefox",
];

opacity-rule = [
	"70:class_g = 'st'"
];

# The shadow exclude options are helpful if you have shadows enabled. Due to the way compton draws its shadows, certain applications will have visual glitches 
# (most applications are fine, only apps that do weird things with xshapes or argb are affected). 
# This list includes all the affected apps I found in my testing. The "! name~=''" part excludes shadows on any "Unknown" windows, this prevents a visual glitch with the XFWM alt tab switcher.

detect-client-opacity = true; # This prevents opacity being ignored for some apps. For example without this enabled my xfce4-notifyd is 100% opacity no matter what.

#Window type settings
wintypes:
{
  tooltip = { fade = true; shadow = false; };
  menu = { shadow = false; };
  dropdown_menu = { shadow = false; };
  popup_menu =  { shadow = false; };
};

Steps of reproduction

  1. picom --corner-radius 12
  2. corners won't have radius

Expected behavior

corners have radius

Current Behavior

corners don't have radius

Stack trace

no crash

Other details

see

Shadows not rendering rounded

GPU, drivers, and screen setup

"glxinfo -B" output:

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Intel (0x8086)
    Device: Mesa Intel(R) UHD Graphics 620 (KBL GT2) (0x5917)
    Version: 21.1.5
    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 620 (KBL GT2)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 21.1.5
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.1.5
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.1.5
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

Environment

I'm running i3-gaps on Arch

picom version

vgit-a9977

Configuration:

corner-radius: 20;

backend = "glx";

glx-no-stencil = true;

glx-copy-from-front = false;

shadow = true;
shadow-radius = 5;
shadow-offset-x = 1;
shadow-offset-y = 1;
shadow-opacity = 0.3;

shadow-exclude = [
    "! name~=''",
    "name = 'Notification'",
    "name = 'Plank'",
    "name = 'Docky'",
    "name = 'Kupfer'",
    "name = 'xfce4-notifyd'",
    "name *= 'VLC'",
    "name *= 'compton'",
    "name *= 'picom'",
    "name *= 'Chromium'",
    "name *= 'Chrome'",
    "class_g = 'Firefox' && argb",
    "class_g = 'Conky'",
    "class_g = 'Kupfer'",
    "class_g = 'Synapse'",
    "class_g ?= 'Notify-osd'",
    "class_g ?= 'Cairo-dock'",
    "class_g ?= 'Xfce4-notifyd'",
    "class_g ?= 'Xfce4-power-manager'",
    "class_g ?= 'Dmenu'",
    "class_g ?= 'i3-frame'",
    "_GTK_FRAME_EXTENTS@:c",
    "_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'"
];
shadow-ignore-shaped = false;

inactive-opacity = .3;
active-opacity = 1;
frame-opacity = 1;
inactive-opacity-override = false;

blur-background-fixed = false;
blur-background-exclude = [
    "window_type = 'dock'",
    "window_type = 'desktop'"
];

fading = false;
fade-delta = 1;
fade-in-step = 0.03;
fade-out-step = 0.03;
fade-exclude = [ ];

mark-wmwin-focused = true;
mark-ovredir-focused = true;
use-ewmh-active-win = true;

detect-rounded-corners = true;

detect-client-opacity = true;

refresh-rate = 0;
vsync = false;

dbe = false;

unredir-if-possible = true;

focus-exclude = [ "class_g = 'Cairo-clock'" ];

detect-transient = true;
detect-client-leader = true;

wintypes :
{
  tooltip :
  {
    fade = true;
    shadow = false;
    opacity = 0.85;
    focus = true;
  };
  fullscreen :
  {
    fade = true;
    shadow = false;
    opacity = 1;
    focus = true;
  };
};

xrender-sync-fence = true;

Steps of reproduction

  1. Run any program in i3-gaps with rounding and shadows on in picom

Expected behavior

I would expect or like for the drop-shadows for the applications to share the rounded corners of the applications themselves.

Current Behavior

Picom seems to detect the application itself as not being rounded (since picom is rounding it instead of the application itself being round), and creates a non-rounded shadow

Other details

Screenshot of polybar
squareshadow

I can make this significantly better by upping the blur-radius, but that option isn't really intended to shape the shadow, I'd love for the shadow to be the exact shape of the application it's shadowing even with no blur.

Options I tried that seemed not to fix it

I tried changing the shadow-ignore-shaped and the detect-rounded-corners in every combination, to no effect.

It's possible that there is a configuration option I'm missing, so I'd love to know if that's the case. If not I'd be willing to try and help fix this if someone could point me in the right direction.

Thanks

Black corner cutout

Platform

GPU, drivers, and screen setup

NVidia GeForce 150M, nvidia-drivers
Mesa: 20.1.1-1.
GLXINFO:

display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
   Vendor: Intel (0x8086)
   Device: Mesa Intel(R) UHD Graphics 620 (KBL GT2) (0x5917)
   Version: 20.1.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 620 (KBL GT2)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 20.1.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 20.1.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 20.1.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

Environment

i3-gaps

picom version

version: vgit-a9977

**Version:** vgit-a9977

### Extensions:

* Shape: Yes
* XRandR: Yes
* Present: Present

### Misc:

* Use Overlay: No (Another compositor is already running)
* Config file used: /home/cigla/.config/picom/picom.conf

### Drivers (inaccurate):

modesetting

Configuration:

backend = "glx";
vsync = true;

corner-radius = 16;

fading = true;
fade-in-step = 0.075;
fade-out-step = 0.075;

frame-opacity = 0.8;

active-opacity = 0.1;
inactive-opacity = 0.1;
opacity-rule = ["100:class_g = 'rofi'"];

shadow = true;
shadow-exclude = [
    "name = 'rofi'"
];

Current Behavior

In corners there is small black cutout
(look at the corner of inactive window)

2020-06-18-152221_1920x1080_scrot
2020-06-18-152229_1920x1080_scrot
2020-06-18-152247_1920x1080_scrot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.