grouped-window-list: thumbnail order depends on panel position when "Sort thumbnails according to the last focused windows" is enabled
メンテナーはふだん 8 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 76/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- javascript
- 領域
- desktop
調査の方向性
grouped-window-list アプレットの menus.js から始め、addThumbnail() と set_child_at_index(...) を呼び出す更新経路に注目します。ソート済みの appThumbnails の順序と、アクターがボックスに挿入される順序を比較し、上部と下部のパネルでソートを有効にして再現します。どちらの位置でも、最後にフォーカスされたウィンドウがアプレットに最も近い位置に保たれれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Environment
- Cinnamon 6.6.7 (Gentoo, X11), applet
[email protected] - Panel at the bottom of the screen (the common/default position)
- Applet setting "Sort thumbnails according to the last focused windows" (
sort-thumbnails) enabled (default isfalse)
Problem
With that setting enabled, the thumbnail popup of a grouped application behaves inconsistently with respect to the panel position:
- Panel at the bottom (default): the most recently focused window - the whole point of the sort setting - ends up at the far end of the thumbnail row, i.e. the end furthest from the applet button. Reaching it means sweeping the pointer across the entire row of thumbnails. (And with hover-peek enabled this additionally raises every window the pointer crosses on the way.)
- Panel moved to the top of the screen: the very same window is placed adjacent to the applet, first in the row, and is reachable immediately.
In other words, the ordering/flip direction of the thumbnail row changes with the panel position, so the most recently used window is not reliably next to the panel button. As a workaround I had to move my whole panel from the bottom to the top of the screen because of this one setting.
Expected behaviour
The visual order of the thumbnail row should be independent of where the panel sits: with sorting enabled, the last focused window should always be the thumbnail closest to the applet/entry point (or the fill direction should be a user-configurable option), so a user with the panel at the bottom can reach the recently used window without crossing the whole list.
Code-level observation
In addThumbnail() (menus.js) the appThumbnails array is sorted by user_time descending (b.user_time - a.user_time), but the thumbnail actor is inserted with this.box.insert_actor(thumbnail.actor, -1) - always appended at the end of the box layout; only the refresh path uses this.box.set_child_at_index(...) with the sorted index. The menu itself is anchored to the source actor (super._init.call(this, groupState.trigger('getActor'), state.orientation, 0.5)), so the visible row order depends on how the popup is placed relative to the panel. The array order and the visible box order therefore diverge, and the divergence flips with the panel position - which matches the behaviour described above.
Happy to provide more details (screenshots/repro steps) if useful.
- 主要言語
- JavaScript
- スター
- 5.7k
- フォーク
- 941
- 平均マージ
- 7日 9時間
- マージ済み PR(30日)
- 13
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
linuxmint/cinnamon のほかの issue
-
BUG
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 8 日以内に返信
-
Sound applet: seek bar jumps back after seeking when player resends metadata (e.g. mpDris2/MPD)オープンBUG
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 8 日以内に返信
-
Menu applet omits descriptions from search-provider results対応中かも @ah682 が 8 日前に担当しました。 オープンBUG
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
linuxmint/cinnamon#14104 · コメント 2 件 ·
メンテナーはふだん 8 日以内に返信
-
xapp-status applet: status icon labels are ellipsized to "..." when the panel zone is a fraction of a pixel short再び着手できるかも @Priyeshshrivastav が 14 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
linuxmint/cinnamon#14096 · コメント 1 件 ·
メンテナーはふだん 8 日以内に返信
-
Grouped Window List applet gets out of sync when a program is removed directly from Startup Applications再び着手できるかも @Aaqibhafeezkhan が 32 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンBUG
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
linuxmint/cinnamon#14057 · コメント 1 件 ·
メンテナーはふだん 8 日以内に返信
linuxmint/cinnamon の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
check:passed logos:edit
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
db-d1-sqlite: upsert is aliased to updateOne, so payload.kv.set never inserts new keys対応中かも @pcbeingused333 が今日担当しました。 オープンBug db: d1-sqlite Payload OSS
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
payloadcms/payload#19766 ·
メンテナーはふだん 1 日以内に返信
-
Type: Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
inverse-inc/packetfence#9707 ·
メンテナーはふだん 1 日以内に返信
-
feedback simulation workshop
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
githubnext/gh-aw-workshop#5896 ·
メンテナーはふだん 1 日以内に返信