Closed Bug 1813403 Opened 1 year ago Closed 1 year ago

[XFCE] Firefox now raises on click

Categories

(Core :: Widget: Gtk, defect, P3)

Firefox 111
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: j2tracey, Unassigned)

References

(Regression)

Details

(Keywords: regression)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:111.0) Gecko/20100101 Firefox/111.0

Steps to reproduce:

The latest Nightly, with the new UI, has changed how it interacts with "Raise on focus" or "Raise on click" settings. When using a window manager configured to not raise the focused window to the top (e.g., using XFCE's Window Manager->Focus settings), the behavior of clicking within a Firefox window has changed.

Actual results:

Even with "Raise on focus" and "Raise on click" disabled, Firefox raises itself above all other windows when clicked anywhere.

Expected results:

Firefox should respect the setting of the window manager, and maintain its z coordinate when settings indicate it should do so. This is how Firefox worked until recently.

This should possibly be marked as a regression of #236299.

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

I wonder if Bug 1812289 is the cause here. Can you try nightly before it? You can download directly from https://archive.mozilla.org/pub/firefox/nightly/2023/01/
Thanks.

Flags: needinfo?(j2tracey)
Priority: -- → P3
Summary: Firefox now raises on click → [XFCE] Firefox now raises on click

Yep, confirmed that 2023-01-25-09-42-00-mozilla-central does not have the bug but 2023-01-25-21-52-01-mozilla-central does.

Flags: needinfo?(j2tracey)

I can also confirm setting browser.tabs.inTitlebar = 0 fixes it.

Should this be marked as a regression for Bug 1812289?

Flags: needinfo?(stransky)
Flags: needinfo?(stransky)
Regressed by: 1812289

:emilio, since you are the author of the regressor, bug 1812289, could you take a look? Also, could you set the severity field?

For more information, please visit auto_nag documentation.

Flags: needinfo?(emilio)

This seems to be the expected behavior for all CSD applications. Happens in Chromium by default, and in Gedit as well.

Given the option is not default and we provide the option to show system titlebar, it's not fixable on our side.

I traced this back to xfwm4's source code:

// src/events.c
if ((screen_info->params->raise_on_click) ||
    !FLAG_TEST (c->xfwm_flags, XFWM_FLAG_HAS_BORDER))
{
    clientClearDelayedRaise ();
    clientRaise (c, None);
}

So, basically, if "raise on click" is enabled, or the window has no border (so CSD window), raise.

XFCE dev saying:

note this option cannot work with client side decorations (most gtk3 clients nowadays) simply because, well, the client draws its decorations instead of xfwm4 so I reckon we'd rather remove that option, it's become unreliable (as depending on the client).

So anyways, given all that, I think this is WONTFIX / INVALID.

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Flags: needinfo?(emilio)
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.