Open ColdMacaroni opened 1 year ago
I tested with xprop command on linux as follow
xprop -name "sketch_231214a" -f WM_CLASS 8s -set WM_CLASS "Processing"
and confirmed that WM_CLASS added on canvas(running window). now I'm researching how can I add this on source code.
https://stackoverflow.com/a/29218320 this thread show where can start point. and similar codes already added here . hmm..
this is the main sketch window maybe ?
Description
When running a sketch that uses the P2D or P3D renderer. The WM_CLASS window variable is not set. This makes it difficult (impossible?) to set window rules for the resulting window. (For example, making it so a tiling window manager makes the window float by default, instead of resizing it.)
Expected Behavior
WM_CLASS should be set to
"Processing", "processing-sketch"
or similar. For reference, the main processing app has a WM_CLASS of"Processing", "Processing"
and a sketch with the default renderer has a WM_CLASS of"processing-core-PApplet", "processing-core-PApplet"
.Current Behavior
The WM_CLASS variable is not set. (I don't mean empty, it just doesn't exist)
Steps to Reproduce
xprop
(or another similar tool). To usexprop
, simply run it on a terminal and click on the window. You can also pipe it intogrep
to filter out the other variables:xprop | grep WM_CLASS
Your Environment