Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (8)
📝 WalkthroughWalkthroughAdds a ChangesPlasma Wayland Protocol v20 + System Protocol Build Support
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
bb51576 to
be7dd9c
Compare
Extend global framework to allow only subscribe for a minimum version. Fix #1584
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/lib/fcitx-wayland/core/display.cpp`:
- Around line 23-25: The globalRemove code path emits globalRemovedSignal_
without verifying that the global was actually created (has a non-null pointer).
Add a null pointer check before emitting globalRemovedSignal_ using the same
pattern as the create path to ensure remove signals are only sent for globals
that were successfully created, maintaining create/remove signal symmetry and
preventing crashes in listeners that dereference the removal payload.
In `@src/lib/fcitx-wayland/plasma-window-management/org_kde_plasma_window.cpp`:
- Around line 171-179: The destructor function for OrgKdePlasmaWindow only calls
org_kde_plasma_window_destroy when the version is >= 4, leaving no cleanup path
for older versions or when the macro is undefined, causing resource leaks. Add
an unconditional fallback call to org_kde_plasma_window_destroy(data) after the
conditional version check block (outside the if statement) to ensure the cleanup
function is always invoked, following the same pattern used in similar wrapper
classes like OrgKdeKwinBlur.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: ba3ea1ac-343a-441e-a235-fcf2c0731f27
📒 Files selected for processing (19)
CMakeLists.txtsrc/frontend/waylandim/plasmaappmonitor.cppsrc/lib/fcitx-wayland/blur/CMakeLists.txtsrc/lib/fcitx-wayland/blur/blur.xmlsrc/lib/fcitx-wayland/blur/org_kde_kwin_blur.cppsrc/lib/fcitx-wayland/core/display.cppsrc/lib/fcitx-wayland/core/display.hsrc/lib/fcitx-wayland/plasma-window-management/CMakeLists.txtsrc/lib/fcitx-wayland/plasma-window-management/org_kde_plasma_activation.cppsrc/lib/fcitx-wayland/plasma-window-management/org_kde_plasma_activation.hsrc/lib/fcitx-wayland/plasma-window-management/org_kde_plasma_activation_feedback.cppsrc/lib/fcitx-wayland/plasma-window-management/org_kde_plasma_activation_feedback.hsrc/lib/fcitx-wayland/plasma-window-management/org_kde_plasma_stacking_order.cppsrc/lib/fcitx-wayland/plasma-window-management/org_kde_plasma_stacking_order.hsrc/lib/fcitx-wayland/plasma-window-management/org_kde_plasma_window.cppsrc/lib/fcitx-wayland/plasma-window-management/org_kde_plasma_window.hsrc/lib/fcitx-wayland/plasma-window-management/org_kde_plasma_window_management.cppsrc/lib/fcitx-wayland/plasma-window-management/org_kde_plasma_window_management.hsrc/lib/fcitx-wayland/plasma-window-management/plasma-window-management.xml
💤 Files with no reviewable changes (1)
- src/lib/fcitx-wayland/blur/blur.xml
Extend global framework to allow only subscribe for a minimum version.
Fix #1584
Summary by CodeRabbit
Release Notes
New Features
stacking_order_changed_2) and activation feedback wrappers.client_geometrysupport and introduced a dedicated stacking-order helper interface.Bug Fixes
Chores