Closed Bug 1525233 Opened 6 years ago Closed 6 years ago

[snappy][Ubuntu 16.04 GNOME][CSD] Right-click context menu incorrectly positioned in non-maximized window with Adwaita theme

Categories

(Core :: Widget: Gtk, defect)

66 Branch
Unspecified
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox65 --- unaffected
firefox66 - affected
firefox67 --- affected

People

(Reporter: ke5trel, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: regression)

Attachments

(1 file)

The beta Snap package on Ubuntu 18.10 has misaligned context menus that cause unwanted actions when the right mouse button is clicked rather than held down. Does not happen with maximized windows, non-remote content (eg about:support), mozilla.widget.use-argb-visuals = false, native titlebar enabled, WebRender or layers acceleration.

Most likely caused by Bug 1521012.

[Tracking Requested - why for this release]:

Context menu in wrong location making interaction difficult and triggers unwanted actions, caused by CSD which is now enabled by default in 66 (Bug 1490344).

This is a dupe of Bug 1521175

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE

(In reply to Martin Stránský [:stransky] from comment #2)

This is a dupe of Bug 1521175

This doesn't happen with WebRender though and there is no rendering issue, cursor matches up perfectly with content, only the right-click context menu and autoscroll icon are misplaced.

Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---

Sorry, wrong bug, it's Bug 1523721

Status: REOPENED → RESOLVED
Closed: 6 years ago6 years ago
Resolution: --- → DUPLICATE

I tested the Snap package 66.0b6 build 20190207161357 which has the fix for Bug 1523721 but the problem still remains.

Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---

This happens with Adwaita theme but also affects the Ubuntu 18.10 default Yaru theme and others since the Snap package cannot use them and falls back to Adwaita.

Problem does not occur with the Ambiance theme.

Summary: [snappy][CSD] Right-click context menu incorrectly positioned in non-maximized window with basic compositor. → [snappy][CSD] Right-click context menu incorrectly positioned in non-maximized window with Adwaita theme

Please try latest nightly package from mozilla if you still can reproduce there. Thanks.

Flags: needinfo?(ke5trel)

I only see this in the Snap package which does not have a channel for Nightly (Bug 1451694).

Errors also appear in terminal when cursor passes over titlebar region (with Ambiance theme as well).

(firefox:29495): Gtk-CRITICAL **: gtk_widget_get_style_context: assertion 'GTK_IS_WIDGET (widget)' failed
(firefox:29495): Gtk-CRITICAL **: gtk_style_context_get_state: assertion 'GTK_IS_STYLE_CONTEXT (context)' failed
(firefox:29495): Gtk-CRITICAL **: gtk_style_context_set_state: assertion 'GTK_IS_STYLE_CONTEXT (context)' failed
(firefox:29495): Gtk-CRITICAL **: gtk_render_background: assertion 'GTK_IS_STYLE_CONTEXT (context)' failed
(firefox:29495): Gtk-CRITICAL **: gtk_render_frame: assertion 'GTK_IS_STYLE_CONTEXT (context)' failed

Flags: needinfo?(ke5trel)

I can reproduce this with latest Nightly 67 on Ubuntu 16.04 (Snap build environment) with ubuntu-gnome-desktop installed and Adwaita theme.

On Nightly 67 it does not occur with mozilla.widget.use-argb-visuals defined regardless of value.
On Beta 66.0b6 it does not occur with mozilla.widget.use-argb-visuals = false.

Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=1c227ac918eb1ab0b702d4424603faeb836f2b1c&tochange=64d38928ff5a59fb8214a0ee2472dccd6f16705d

Regressed by Bug 1521012.

I created Bug 1526867 for the terminal errors.

(In reply to Kestrel from comment #8)

I only see this in the Snap package which does not have a channel for
Nightly (Bug 1451694).

Errors also appear in terminal when cursor passes over titlebar region (with
Ambiance theme as well).

(firefox:29495): Gtk-CRITICAL **: gtk_widget_get_style_context: assertion 'GTK_IS_WIDGET (widget)' failed
(firefox:29495): Gtk-CRITICAL **: gtk_style_context_get_state: assertion 'GTK_IS_STYLE_CONTEXT (context)' failed
(firefox:29495): Gtk-CRITICAL **: gtk_style_context_set_state: assertion 'GTK_IS_STYLE_CONTEXT (context)' failed
(firefox:29495): Gtk-CRITICAL **: gtk_render_background: assertion 'GTK_IS_STYLE_CONTEXT (context)' failed
(firefox:29495): Gtk-CRITICAL **: gtk_render_frame: assertion 'GTK_IS_STYLE_CONTEXT (context)' failed

Looks like the GTK+ styles are not loaded so the decoration offset is incorrectly calculated (perhaps as zero).

The regression from Bug 1521012 is that we switched from window manager decoration styles to client decorations (CSD) and we need to calculate the decoration offset here.

So it's needed to fix Bug 1526867 to get correct offset or disable default hidden titlebar when running under snappy.

Summary: [snappy][CSD] Right-click context menu incorrectly positioned in non-maximized window with Adwaita theme → [snappy][Ubuntu 16.04 GNOME][CSD] Right-click context menu incorrectly positioned in non-maximized window with Adwaita theme

This has been fixed on Ubuntu 16.04 with GNOME desktop by Bug 1529713.

Status: REOPENED → RESOLVED
Closed: 6 years ago6 years ago
Depends on: 1529713
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: