Bug 423952

Summary: [Wayland] Firefox's tab overflow menu is too short
Product: [Plasma] kwin Reporter: Nate Graham <nate>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: kde, meven.car, rainer
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
URL: https://bugzilla.mozilla.org/show_bug.cgi?id=1661880
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Tab overflow menu too short
Wayland debug output

Description Nate Graham 2020-07-06 21:43:20 UTC
Created attachment 129949 [details]
Tab overflow menu too short

Everything KDE from git master, Wayland, 250% scale factor with a 4K 14" screen. See attached screenshot. Does not reproduce on X11.
Comment 1 Méven Car 2020-07-08 07:40:04 UTC
I reproduce the issue (no scale factor, 1080p screen).

The issue is that popup does expand outside of the parent app window.

I wasn't able to reproduce with Gimp's help menu, it expands outside of its parent window.
So it might be firefox specific, or the way this popup is implemented.
Comment 2 Nate Graham 2020-07-08 13:35:58 UTC
Hmm, there is plenty of vertical space in the parent window for the pop-up to expand into, it just doesn't do so.
Comment 3 David Edmundson 2020-07-08 15:12:50 UTC
Please attach output of WAYLAND_DEBUG=1
Comment 4 Nate Graham 2020-07-09 17:53:48 UTC
Created attachment 130002 [details]
Wayland debug output

Attached
Comment 5 David Edmundson 2020-08-10 22:56:02 UTC
[3687561.559]  -> xdg_positioner@73.set_size(308, 288)
[3687561.575]  -> xdg_positioner@73.set_anchor_rect(1461, 59, 28, 28)
[3687561.601]  -> xdg_positioner@73.set_offset(20, -6)
[3687561.615]  -> xdg_positioner@73.set_anchor(2)
[3687561.624]  -> xdg_positioner@73.set_gravity(6)
[3687561.632]  -> xdg_positioner@73.set_constraint_adjustment(51)
[3687561.642]  -> xdg_wm_base@23.get_xdg_surface(new id xdg_surface@74, wl_surface@70)


To me that pictures looks ~308x208?
If it's not, please reopen,
Comment 6 Nate Graham 2020-08-10 23:08:00 UTC
What? Does the screenshot not adequately depict the problem that the popup doesn't become as tall as the parent window?

If the resolution in the screenshot is low, that's Spectacle not being able to do hidpi properly on Wayland. Nothing to do with the bug at hand.
Comment 7 David Edmundson 2020-08-10 23:15:18 UTC
Your log shows the client asked for it to be 208 pixels tall. So what is kwin doing wrong?
Comment 8 Nate Graham 2020-08-10 23:21:16 UTC
I have no idea. It's really frustrating to submit Wayland bugs because it seems impossible to know who's at fault for an issue like this. I gather you're saying that it's Firefox's fault?
Comment 9 David Edmundson 2020-08-10 23:27:31 UTC
Firefox... or gtk.

But the log does seems to rule out kwin at this stage.
Comment 10 Nate Graham 2020-08-29 03:37:35 UTC
Filed a bug on Firefox: https://bugzilla.mozilla.org/show_bug.cgi?id=1661880