java - Linux Compton: How to Remove Window Shadow for Undecorated JFrame -


i have created undecorated per-pixel-translucency jframe in java. size of frame (in screeny below) 512x512. i've added 3 images far. problem window shadow created compton pretty ruins effect of per-pixel-translucency. i've been trying find out how disable window shadow jframes cannot find regarding compton.

screenshot

is there perhaps way run command disable compton particular process via command line? in case use runtime.exec().

what i've tried:

  • setundecorated(true);
  • getrootpane().putclientproperty("window.shadow", boolean.false);
  • settype(type.utility);
  • settype(type.popup);

note: still want compton active, not particular jframe.

though not solution applications transparent windows, works me since want single application not use compton shadows.

solution:

  1. create compton config file.
  2. add shadow-exclude = [ "name = 'windowtitle'" ]; windowtitle title of window.
  3. execute pkill compton in terminal.
  4. start compton , make sure linked config file --config parameter.

that's it.


Comments