Skip to content

only bring toplevels to front#2716

Merged
ammen99 merged 1 commit intoWayfireWM:masterfrom
lilydjwg:subsurface-order
Jul 22, 2025
Merged

only bring toplevels to front#2716
ammen99 merged 1 commit intoWayfireWM:masterfrom
lilydjwg:subsurface-order

Conversation

@lilydjwg
Copy link
Contributor

@lilydjwg lilydjwg commented Jul 8, 2025

Don't bring a popup or subsurface to front as subsurfaces have their own order.

fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1943240. fixes #2566.

@lilydjwg lilydjwg force-pushed the subsurface-order branch from 2e95a94 to e6ad62e Compare July 8, 2025 14:24
@ammen99
Copy link
Member

ammen99 commented Jul 8, 2025

The fix is weird because what you describe is a bug related to subsurface ordering, and the patch that you have will make a difference only if we have dialogs. Can you explain how to reproduce the issue starting from a fresh install of firefox?

@lilydjwg
Copy link
Contributor Author

lilydjwg commented Jul 8, 2025

I have written steps to reproduce in the firefox bug. Copying it here:

  • Create a folder in the bookmark bar
  • Create a folder inside the folder just created
  • Right click on the new folder to open a context menu

@killown
Copy link
Contributor

killown commented Jul 8, 2025

test.mp4

@ammen99
Copy link
Member

ammen99 commented Jul 8, 2025

I have written steps to reproduce in the firefox bug. Copying it here:

  • Create a folder in the bookmark bar
  • Create a folder inside the folder just created
  • Right click on the new folder to open a context menu

I repeated these steps but it works OK here. Firefox 139.0.4

@killown
Copy link
Contributor

killown commented Jul 8, 2025

I have written steps to reproduce in the firefox bug. Copying it here:

* Create a folder in the bookmark bar

* Create a folder inside the folder just created

* Right click on the new folder to open a context menu

are you on matrix wayfire chat? https://matrix.to/#/#wayfire:matrix.org

@killown
Copy link
Contributor

killown commented Jul 9, 2025

could you use ammen patch in your pr https://0x0.st/8GY3.diff

so that their relative order is kept.

fixes WayfireWM#2566.
@lilydjwg lilydjwg force-pushed the subsurface-order branch from e6ad62e to be23617 Compare July 9, 2025 14:35
@lilydjwg
Copy link
Contributor Author

lilydjwg commented Jul 9, 2025

Updated. It feels a bit weird that I'm asking to merge a commit authored by ammen to ammen's project.

@ammen99
Copy link
Member

ammen99 commented Jul 9, 2025

Updated. It feels a bit weird that I'm asking to merge a commit authored by ammen to ammen's project.

It is also important to test the changes :)

I am considering whether we could easily develop an automatic test for this. I find them very useful to catch such corner cases. Things break more often than one might think.

@ammen99 ammen99 added this to the 0.10 milestone Jul 17, 2025
@ammen99 ammen99 merged commit f57a89d into WayfireWM:master Jul 22, 2025
4 checks passed
@ammen99
Copy link
Member

ammen99 commented Jul 22, 2025

Added a test here: ammen99/wayfire-tests@5a92147

Should prevent us from getting it wrong again :)

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.

Subsurface order isn't respected on mouse click and causes issue for Firefox

3 participants