Minimized windows stay visible: muffin stops emitting `minimize` / hiding the window actor until Cinnamon is restarted

Đang mở
#14,134 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
22/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
c, javascript
Lĩnh vực
desktop

Hướng nghiên cứu

Start with the minimize path in src/core/window.c (meta_window_hide) and its call into src/compositor/compositor.c (meta_compositor_hide_window), then the MetaWindowActor visibility handling in src/compositor/meta-window-actor.c; the report's suspicion is that visible_to_compositor and the actor's internal visibility drift apart. Reproduce by running the org.Cinnamon.Eval dbus-send check from the report and watching the Main.wm._cinnamonwm minimize signal, ideally with muffin-dbg breakpoints on those hide functions. Done means a minimized window's actor has visible=false and CinnamonWM emits minimize again after a session has been in the broken state.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Distribution

Linux Mint 22.3 Zena

Package version

Cinnamon 6.6.9, Muffin 6.6.3 (X11)

Graphics hardware in use

AMD Radeon RX 6600 XT (amdgpu, Mesa 25.2.8), two monitors (1920x1080 + 1080x1920 portrait), no fractional scaling

Frequency

Only occasionally

Bug description

Same symptom as #11409 and #11929: after minimizing, a window stays on screen and only loses focus. Its contents are not clickable; clicks reach the window or desktop behind it. Once the session gets into this state, every minimize does this, including on newly opened windows. Restarting Cinnamon (Ctrl+Alt+Esc) fixes it.

Note: a comment on #11409 suggested this only affects Intel iGPUs (i915). This machine has an AMD dGPU. The second comment on #14004 also describes minimize breaking until Cinnamon is restarted and then coming back after a few days. That report involves fractional scaling, which this machine doesn't use.

I checked the session while it was broken (via org.Cinnamon.Eval):

  • X11 side is correct: WM_STATE = Iconic, _NET_WM_STATE_HIDDEN is set, and meta_window.minimized === true.
  • The MetaWindowActor of the minimized window stays visible === true, with opacity 255 and scale 1.0. A notify::visible handler on the actor never fires during the minimize.
  • CinnamonWM never emits minimize for that window: a handler connected to Main.wm._cinnamonwm minimize (and kill-window-effects) never runs. Main.wm._minimizing is empty and Main.modalCount is 0.
  • It happens with window effects disabled too (desktop-effects-minimize = 'none'), so it is not the JS animation getting stuck.
  • Muffin laters run normally: Meta.later_add() callbacks for CALC_SHOWING, BEFORE_REDRAW and IDLE all fire.
  • It reproduces on a newly created xmessage window, so it is not a single window in a bad state.
  • No third-party applets or extensions are installed. ~/.xsession-errors has no relevant warnings or criticals.
  • After Main.restartCinnamon(), the windows that were stuck are hidden and new minimizes work.

So it looks like muffin stops hiding windows inside meta_window_hide() / meta_compositor_hide_window() for minimized windows: visible_to_compositor and the actor's internal visibility seem to go out of sync. The X11 WM state is still updated.

Steps to reproduce

I don't have a reliable trigger. This time it appeared within about 10 minutes of logging in. Normal desktop use: Brave, Discord, terminals. There is a KVM switch on the machine that triggers RandR changes.

Once the session is in this state:

  1. Open any window (e.g. xmessage test).
  2. Minimize it (button, or xdotool windowminimize).
  3. The window stays painted but is minimized and unfocused.
Expected behavior

The minimized window is hidden.

Additional information

Check that shows the broken state:

dbus-send --session --print-reply=literal --dest=org.Cinnamon /org/Cinnamon org.Cinnamon.Eval \
  string:'global.get_window_actors().filter(a=>a.meta_window.minimized).map(a=>a.meta_window.get_wm_class()+" vis="+a.visible).join("; ")'

Healthy session: vis=false. Broken: vis=true.

I can run more diagnostics the next time it happens (muffin-dbg is installed, so I can use gdb breakpoints on meta_window_hide / meta_window_actor_hide) if you tell me what would help.

Ngôn ngữ chính
JavaScript
Star
5.7k
Fork
941
Merge trung bình
6 ngày 18 giờ
Pull request đã merge (30 ngày)
12

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của linuxmint/cinnamon

Tất cả issue của linuxmint/cinnamon

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.