Skip to content

Fix Bitwarden floating window rendering issues - #6449

Closed
Elevate08 wants to merge 1 commit into
omacom:quattrofrom
Elevate08:fix/bitwarden-floating-window
Closed

Elevate08 wants to merge 1 commit into
omacom:quattrofrom
Elevate08:fix/bitwarden-floating-window

Conversation

@Elevate08

Copy link
Copy Markdown

Windows tagged with +floating-window have a size of "875 600" by default.
This is larger than what the Bitwarden extension requests and causes the popup window to not refresh properly.
The window can be forced to resize by switching windows; however, forcing the max_size and removing the standard +floating-window tag allows the window to render properly.

Fixes #6075

Copilot AI review requested due to automatic review settings July 30, 2026 20:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes Bitwarden extension popup rendering by avoiding the generic 875×600 floating-window rule.

Changes:

  • Applies dedicated floating behavior with a 480×650 maximum size.
  • Disables blur while preserving screen-share protection.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@raybarrera

Copy link
Copy Markdown

This PR fixes the toolbar popup (chrome-nngceckbapebfimnlniiiahkandclblb-Default) being forced to 875×600 via +floating-window. That match is incomplete for Omarchy web apps / PWAs.

omarchy-launch-webapp launches Chromium --app= when the default browser is not Chrome/Brave/Edge/Opera/Vivaldi/Helium (Zen and Firefox fall through to Chromium). The Bitwarden popup from that path uses a different class:

chrome-nngceckbapebfimnlniiiahkandclblb__popup_index.html-Default

That name starts with chrome, so default/hypr/apps/browser.lua tags it chromium-based-browser and tiles it. On this machine that window was 1896×1030, floating = false.

Suggested follow-up in default/hypr/apps/bitwarden.lua — keep the desktop-app rule, match every chrome-nngceck… class, drop both floating-window and chromium-based-browser, then float at Bitwarden's 480×650:

o.window("^(Bitwarden)$", { no_screen_share = true, tag = "+floating-window" })

o.window("chrome-nngceckbapebfimnlniiiahkandclblb.*", { tag = "-floating-window" })
o.window("chrome-nngceckbapebfimnlniiiahkandclblb.*", { tag = "-chromium-based-browser" })
o.window("chrome-nngceckbapebfimnlniiiahkandclblb.*", {
  float = true,
  no_blur = true,
  no_screen_share = true,
  size = { 480, 650 },
  max_size = { 480, 650 },
})

Verified locally on Omarchy 4.0.0 / Hyprland 0.56.2 / Chromium 151: after this rule the --app= popup is 480×650, floating = true. Happy to open a follow-up PR if you'd rather land this separately from the 875×600 change.

@Elevate08

Copy link
Copy Markdown
Author

@raybarrera I can't recreate the class you encountered.

For me, this PR fixes the popup encountered when accessing bitwarden from a form field. Not from the extension toolbar.

I've tested Firefox, Brave, Chrome, and Chromium. The only browser to experience a non floating window for Bitwarden was Brave, which has a similar class except it starts with brave- instead of chrome-

@bjarneo

bjarneo commented Sep 21, 2026

Copy link
Copy Markdown
Member

Automated duplication check: this pull request looks similar to #8341, which covers the same Bitwarden float rule. I keep that one open and close this one to consolidate review.

If you feel this is the wrong decision, please open the PR again with a note on the difference.

@bjarneo bjarneo closed this Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bitwarden Chrome Extension popup locked to 875x600 since 2026.5.1 update

5 participants