processing / processing/processing4

P2D and P3D renderers don't set `WM_CLASS` for Linux

オープン
#777 コメント 8 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

help wanted linux
主要言語
Java
スター
494
フォーク
183
平均マージ
4時間 39分
マージ済み PR(30日)
3

説明

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

  1. Run a sketch that uses P2D or P3D as a renderer. Example code:
size(128, 128, P2D);
  1. Inspect the window class with xprop (or another similar tool). To use xprop, simply run it on a terminal and click on the window. You can also pipe it into grep to 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)

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、提供された P2D または P3D sketch を Linux 上で実行し、xprop | grep WM_CLASS でそのウィンドウを調べます。P2D/P3D renderer のウィンドウ初期化を追跡し、その後、結果のウィンドウが "Processing", "processing-sketch" のような WM_CLASS を公開することを、デフォルトの renderer の動作を変更せずに確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
desktop, operating-systems
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。