chjj / compton

A compositor for X11.
Other
2.25k stars 501 forks source link

Avoid shadow rendering in taskbar #325

Open yagomont opened 8 years ago

yagomont commented 8 years ago

I use a custom desktop, made of Openbox, Compton and tint2 (and plank, which is fine.) However, there is an ugly shadow on the tint2 bar when applications are maximized or just near the bar. Is there a way to ignore shadow rendering on the dock type windows? (I think it is a dock type window.)

xprop output:

WM_STATE(WM_STATE): window state: Normal icon window: 0x0 _NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_MOVE _KDE_NET_WM_FRAME_STRUT(CARDINAL) = 0, 0, 0, 0 _NET_FRAME_EXTENTS(CARDINAL) = 0, 0, 0, 0 _NET_WM_ICON(CARDINAL) = Icon (48 x 48):

  ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  
  ▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒  
  ▒░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒  
  ▒░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒  
  ▒░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒  
  ▒░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒  
  ▒░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒  
  ▒░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒  
  ▒░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒  
  ▒░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒  
  ▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒  
  ▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒  
  ▒                                          ▒  
  ░                                          ▒  
  ▒                                          ▒  
  ▒                                          ▒  
  ▒                                          ▒  
  ▒                                          ▒  
  ▒                                          ▒  
  ▒                                          ▒  
  ▒                                          ▒  
  ▒                                          ▒  
  ▒                                          ▒  
  ▒                                          ▒  
  ▒                                          ▒  
  ▒                                          ▒  
  ▒                                          ▒  
  ▒                                          ▒  
  ▒                                          ▒  
  ▒                                          ▒  
  ▒                                          ▒  
  ▒                                          ▒  
  ░                                          ▒  
  ░                                          ▒  
  ░                                          ░  
  ░                                          ▒  
  ▒                                          ▒  
  ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  
  ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  
  ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  
  ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░  
     ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░    

_OB_APP_TYPE(UTF8_STRING) = "splash" _OB_APP_TITLE(UTF8_STRING) = "tint2" _OB_APP_GROUP_CLASS(UTF8_STRING) = _OB_APP_GROUP_NAME(UTF8_STRING) = _OB_APP_CLASS(UTF8_STRING) = "Tint2" _OB_APP_NAME(UTF8_STRING) = "tint2" _OB_APP_ROLE(UTF8_STRING) = _NET_WM_VISIBLE_ICON_NAME(UTF8_STRING) = "tint2" _NET_WM_VISIBLE_NAME(UTF8_STRING) = "tint2" WM_CLASS(STRING) = "tint2", "Tint2" WM_NORMAL_HINTS(WM_SIZE_HINTS): program specified location: 0, 0 program specified minimum size: 1365 by 32 program specified maximum size: 1365 by 32 _NET_WM_STRUT_PARTIAL(CARDINAL) = 0, 0, 0, 33, 0, 0, 0, 0, 0, 0, 0, 1364 _NET_WM_STRUT(CARDINAL) = 0, 0, 0, 33 XdndAware(ATOM) = ATOM _MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x2, 0x0, 0x0, 0x0, 0x0 WM_HINTS(WM_HINTS): Client accepts input or input focus: False _NET_WM_STATE(ATOM) = _NET_WM_STATE_SKIP_TASKBAR, _NET_WM_STATE_SKIP_PAGER _NET_WM_DESKTOP(CARDINAL) = 4294967295 _NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_SPLASH _NET_WM_ICON_NAME(UTF8_STRING) = "tint2" _NET_WM_NAME(UTF8_STRING) = "tint2" WM_ICON_NAME(STRING) = "tint2" WM_NAME(STRING) = "tint2"

There is an option called

panel_dock = '0'

in the tint2rc file. But if I set it to '1', the dock just goes to the top. Is there a way to bypass shadow rendering on the tint2 panel? (preferably by the configuration file of compton)

rlue commented 5 years ago

I'm having this problem too, in KDE (shadow on the "system panel"). I would have guessed that the config option for it was

no-dock-shadow = true;

but I have that set, and I'm still getting a shadow on my system panel.

FWIW I'm on 0.1~beta2+20150922. Looks like development has stopped, though?