Hey,
XWayland popups are poorly sized, I tested on firefox. For example, try going to the following url to trigger http auth: http://www.httpwatch.com/httpgallery/authentication/authenticatedimage/default.aspx?0.7424363763312372
The popup window for the password is very poorly sized (and I also can't resize it from the keybindings, but I guess that's a different matter).

Thanks.
Or the uMatrix (firefox extension) window that is poorly sized, accepts input in areas in doesn't render to and etc...
This bug is still present in:
This bug is still present in:
Still an issue on sway 0.15.0, especially with Firefox's uMatrix pop-up, where clicks aren't detected properly.
Has this been fixed as part of the hackathon? :)
Yep.
Can reproduce again in 1.0.
Any status update?
Status update: please send patches to fix this.
Any insight as to where this problem stems from, a place to start making a patch to fix this?
I poked around in xwayland.c's handle_map. In my case the size that it's committing with is 299x186, which is too small. It seems to be a problem with Firefox or xwayland.
GNOME doesn't have this issue so its unlikely. There's a preferred size alongside the min and max size for xwayland views, maybe there's something to do about it.
I don't think this is us
Well, I do think this is us.
oh.
Firefox submits two configure requests for any surface it intends to have mapped I think.
The first one requests the correct geometry, but the second passes 1x1 causing it to shrink.
https://github.com/swaywm/wlroots/blob/master/xwayland/xwm.c#L804
This handles the event, but always handles it as an attempt to set the geometry even though that might not be the case.
https://tronche.com/gui/x/xlib/events/structure-control/configure.html
I think these are the other actions it can take.
https://tronche.com/gui/x/xlib/window/configure.html#XWindowChanges
If I print value_mask for each event I get 12(width and height) for the first one and 64(StackMode) for the second. Perhaps it is trying to raise the window.
Most helpful comment
Or the uMatrix (firefox extension) window that is poorly sized, accepts input in areas in doesn't render to and etc...