grouped-window-list: thumbnail order depends on panel position when "Sort thumbnails according to the last focused windows" is enabled
Maintainer thường phản hồi trong vòng 8 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 76/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript
- Lĩnh vực
- desktop
Hướng nghiên cứu
Bắt đầu trong menus.js của applet grouped-window-list, tập trung vào addThumbnail() và đường cập nhật gọi set_child_at_index(...). So sánh thứ tự đã sắp xếp của appThumbnails với thứ tự các actor được chèn vào hộp, sau đó tái hiện lỗi khi bật sắp xếp trên các thanh panel ở phía trên và phía dưới. Hoàn tất khi cửa sổ được focus gần đây nhất vẫn nằm gần applet nhất ở cả hai vị trí.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- JavaScript
- Star
- 5.7k
- Fork
- 941
- Merge trung bình
- 7 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 13
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của linuxmint/cinnamon
-
BUG
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 8 ngày
-
Sound applet: seek bar jumps back after seeking when player resends metadata (e.g. mpDris2/MPD)Đang mởBUG
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 8 ngày
-
Menu applet omits descriptions from search-provider resultsCó thể đã có người làm @ah682 đã nhận 8 ngày trước. Đang mởBUG
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
linuxmint/cinnamon#14104 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 8 ngày
-
xapp-status applet: status icon labels are ellipsized to "..." when the panel zone is a fraction of a pixel shortCó thể làm lại được @Priyeshshrivastav đã nhận 14 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
linuxmint/cinnamon#14096 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 8 ngày
-
Grouped Window List applet gets out of sync when a program is removed directly from Startup ApplicationsCó thể làm lại được @Aaqibhafeezkhan đã nhận 32 ngày trước và không có pull request nào đang mở. Đang mởBUG
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
linuxmint/cinnamon#14057 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 8 ngày
Tất cả issue của linuxmint/cinnamon
Issue tương tự
-
type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 66/100
fmhy/edit#7340 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ai-amazon-bedrock: a tool result that isn't a JSON object fails the next requestCó thể đã có người làm @effect-bot đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[bug] Toolchain versions from `.prototools` are not inherited when moon runs from a subdirectoryĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Edit: Tele1 Logo [SV]Đang mởcheck:passed logos:edit
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày