Repository navigation
Conversation
923de31 to
4229a8e
Compare
|
@mitchchn you may be interested, can you please review? |
|
Yes, #51161 addresses this issue. |
ckerr
left a comment
There was a problem hiding this comment.
Needs a linter fix. yarn run lint:cpp should fix it; otherwise, https://github.com/electron/electron/actions/runs/24494864746/job/71702543542?pr=51010 has a list of what needs to change
4229a8e to
8c2b190
Compare
|
@ckerr done |
|
|
||
| caption_button_placeholder_container_ = | ||
| if (auto* linux_ui = ui::LinuxUi::instance()) | ||
| linux_ui->AddWindowButtonOrderObserver(this); |
There was a problem hiding this comment.
While this technically works, maintaining a base::ScopedObservation member at the class-level is safer and idiomatic.
8c2b190 to
1d7c60f
Compare
| leading_button_placeholder_container_; | ||
| raw_ptr<CaptionButtonPlaceholderContainer> | ||
| trailing_button_placeholder_container_; | ||
| base::ScopedObservation<ui::LinuxUi, ui::WindowButtonOrderObserver> |
There was a problem hiding this comment.
Did you test this? You seem to be missing an include here
There was a problem hiding this comment.
yeah, sorry, didn't
now updated, ran build&lint + manually tested
1d7c60f to
8e5c1e1
Compare
|
Rebased and fixed lint |
|
Looks good to me. We can land this, backport to stable and beta, and I'll rebase my PR on top of this change. |
|
@tarik02 #51161 is being backported to 43-x-y in #51658. It can’t be backported any further due to Chromium dependencies. While you could technically backport this PR by targeting 41-x-y and 42-x-y directly, I don’t think that aligns with Electron’s backport process. I’m not a maintainer, so perhaps @ckerr can provide a definitive answer. |
|
@mitchchn agree, thank you! |
Description of Change
Closes #51000
All code changes and understanding were manually done by me. OpenAI Codex assistance was used only for setting up build environment and searching/exploring mostly chromium codebase.
@codebytere sorry for previous slop MRs. This is my last attempt :). Now everything made manually by me.
Before/after this change:

Here is gist with app code used in screenshot: https://gist.github.com/tarik02/0a3276b19fa0d9912faa039aef8507ee
Checklist
npm testpassesRelease Notes
Notes: WCO respected the title bar order defined in system settings.