processing / processing/processing4
P2D and P3D renderers don't set `WM_CLASS` for Linux
Personne n'a encore pris cette issue.
- Langage dominant
- Java
- Étoiles
- 494
- Forks
- 183
- Merge moyen
- 4 h 39 min
- PR mergées (30 j)
- 3
Description
Created by: @ColdMacaroni
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
- Run a sketch that uses P2D or P3D as a renderer. Example code:
size(128, 128, P2D);
- Inspect the window class with
xprop(or another similar tool). To usexprop, simply run it on a terminal and click on the window. You can also pipe it intogrepto filter out the other variables:xprop | grep WM_CLASS
Your Environment
- Processing version: 4.3 (1293)
- Operating System and OS version: Arch Linux (kernel 6.4.12-arch1-1)
- Other information:
- Xorg server version: 21.1.8
- Tested with the following window managers:
- AwesomeWM
- XMonad
- Hyprland (through XWayland)
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par exécuter le sketch P2D ou P3D fourni sous Linux et inspectez sa fenêtre avec xprop | grep WM_CLASS. Suivez l'initialisation de la fenêtre du renderer P2D/P3D, puis vérifiez que la fenêtre obtenue expose une WM_CLASS telle que "Processing", "processing-sketch" sans modifier le comportement par défaut du renderer.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- java
- Domaine
- desktop, operating-systems
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 45/100