Closed
Bug 1491808
Opened 6 years ago
Closed 6 years ago
[CSD][Wayland] Titlebar looks inactive when the main windows is dragged
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
RESOLVED
FIXED
mozilla65
Tracking | Status | |
---|---|---|
firefox-esr60 | --- | unaffected |
firefox64 | --- | unaffected |
firefox65 | --- | fixed |
People
(Reporter: stransky, Assigned: stransky)
References
(Blocks 2 open bugs, )
Details
(Keywords: regression)
Attachments
(2 files)
There's a small regression from Bug #1442755 When Firefox main window is dragged, the titlebar and elements there are painted as inactive.
Updated•6 years ago
|
Keywords: regression
Comment 1•6 years ago
|
||
This may need its own bug, but similarly in MATE the Firefox main window looks inactive when there is an OSD on the screen, such as when changing the volume or brightness using the keyboard buttons and when using Alt+Tab. Other apps (CSD and non-CSD) don't do this. I tried Xfce and Gnome, and it looks like it works OK there, so this may also be a MATE/Marco bug.
Assignee | ||
Comment 2•6 years ago
|
||
I can reproduce that on gnome-shell with Ubuntu Ambiance theme.
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → stransky
Assignee | ||
Comment 3•6 years ago
|
||
(In reply to Alexander Browne from comment #1) > This may need its own bug, but similarly in MATE the Firefox main window > looks inactive when there is an OSD on the screen, such as when changing the > volume or brightness using the keyboard buttons and when using Alt+Tab. > Other apps (CSD and non-CSD) don't do this. I tried Xfce and Gnome, and it > looks like it works OK there, so this may also be a MATE/Marco bug. Firefox titlebar reacts on focus change so it may be caused by this. Also, I can't reproduce this one with latest trunk, co closing for now.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WORKSFORME
Comment 4•6 years ago
|
||
I still see it in Ubuntu MATE with the latest nightly, but I think it's a MATE/Marco issue.
Assignee | ||
Comment 5•6 years ago
|
||
Hm, it's here again - Fedora 29/gnome-shell.
Status: RESOLVED → REOPENED
QA Contact: jmathies
Resolution: WORKSFORME → ---
Assignee | ||
Comment 6•6 years ago
|
||
I can reliably reproduce that on Wayland builds only.
Comment 7•6 years ago
|
||
FWIW it's fixed (as of a week ago I'd say) on Ubuntu MATE (18.10 at least) when using OSD.
Assignee | ||
Comment 8•6 years ago
|
||
(In reply to Alexander Browne from comment #7) > FWIW it's fixed (as of a week ago I'd say) on Ubuntu MATE (18.10 at least) > when using OSD. Thanks, marking as Wayland only then as I can reproduce it only there.
Blocks: wayland
Status: REOPENED → NEW
Summary: [CSD] Titlebar looks inactive when the main windows is dragged → [CSD][Wayland] Titlebar looks inactive when the main windows is dragged
Updated•6 years ago
|
QA Contact: jmathies
Assignee | ||
Comment 9•6 years ago
|
||
Seems to be caused by focus-out even which is sent to main window when it's dragged. I see that on gnome-shell only, Weston doesn't send that.
Assignee | ||
Comment 10•6 years ago
|
||
Reported upstream as https://gitlab.gnome.org/GNOME/gtk/issues/1395 It's Mutter/Wayland specific issue, works fine in X11/Weston.
Assignee | ||
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 11•6 years ago
|
||
It's going to be addressed in Bug 1497534.
Status: NEW → RESOLVED
Closed: 6 years ago → 6 years ago
Resolution: --- → DUPLICATE
Assignee | ||
Updated•6 years ago
|
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Assignee | ||
Comment 12•6 years ago
|
||
The bug is still here - it would need more investigation to fix that properly. Firefox 64 is not affected as Bug 1442755 was backed out (disabled) for Beta.
Status: REOPENED → ASSIGNED
Assignee | ||
Comment 13•6 years ago
|
||
Looks like the moz_gtk_header_bar_paint() may be called before the GTK_STATE_FLAG_BACKDROP state flag is set at mShell window - it's a race condition.
Assignee | ||
Comment 14•6 years ago
|
||
This is a workaround for https://gitlab.gnome.org/GNOME/gtk/issues/1395 Gtk+ controls window active appearance by window-state-event signal but gecko uses focus-in/out signals. So we need to set the the titlebar state when window-state-event comes *after* focus-in/out signals.
Assignee | ||
Comment 15•6 years ago
|
||
Titlebar (StyleAppearance::MozWindowTitlebar) style depends on toplevel window focus and we need to redraw it when toplevel window focus changes. Unfortunately according to https://gitlab.gnome.org/GNOME/gtk/issues/1395 the toplevel window focus can't be used here as we can have active but unfocused toplevel window during drag & drop. Gtk+ controls window active appearance by window-state-event signal but gecko uses focus-in/out signals, so we need to repaint the titlebar when window-state-event comes *after* focus-in/out signals. We can't call mWidgetListener->WindowActivated() (and WindowDeactivated()) as it was already called from focus-in/out handlers before window-state-event. Depends on D13051
Assignee | ||
Updated•6 years ago
|
Keywords: checkin-needed
Comment 16•6 years ago
|
||
Pushed by nbeleuzu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d1fc8c77ad7f Listen on window-state-event to set titlebar active/inactive state, r=jhorak https://hg.mozilla.org/integration/autoland/rev/1a6f9251c41f [Linux/CSD/Titlebar] Force toplevel window repaint when titlebar rendering is enabled and its state changes, r=bzbarsky
Keywords: checkin-needed
Comment 17•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/d1fc8c77ad7f https://hg.mozilla.org/mozilla-central/rev/1a6f9251c41f
Status: ASSIGNED → RESOLVED
Closed: 6 years ago → 6 years ago
status-firefox65:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
Updated•5 years ago
|
status-firefox-esr60:
--- → unaffected
You need to log in
before you can comment on or make changes to this bug.
Description
•