hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
19.99k stars 852 forks source link

Chromium extension windows appear very narrow #2003

Closed mrkajetanp closed 2 months ago

mrkajetanp commented 1 year ago

I'm experiencing a strange issue with the windows created by chrome/chromium extensions. Whenever I try clicking on them they appear very narrow and not usable. I did not have the same issue with Gnome on Wayland and Chromium is running in Wayland mode. I'm not sure if it's directly related to this project but asking here in case someone has seen this before.. Screenshot below.

20230409_13h53m42s_grim

vaxerski commented 1 year ago

check on sway-git

adwaymalhotra commented 1 year ago

I face the same issue on Hyprland.

The extension windows are fine in chrome on sway.

mrkajetanp commented 1 year ago

Thanks for checking on sway, do you use normal chrome or some chromium variant?

adwaymalhotra commented 1 year ago

It's normal chrome. I initially suspected it may be a chrome issue but checked on sway after I saw this bug.

The issue has been there for at least a few months on Hyprland. Can't say if the issue existed on sway in the past.

vaxerski commented 1 year ago

would help if I could reproduce this

image

mrkajetanp commented 1 year ago

Interesting, are you running chrome in Wayland mode or through XWayland? Which version is it?

vaxerski commented 1 year ago

wayland, newest from arch repos, chromium

adwaymalhotra commented 1 year ago

Interestingly, it doesn't happen when the window is fullscreen using bind=SUPERALT,F,fullscreen,1 on the external monitor(s).

On the laptop screen, it happens every time: fullscreen or not.

schmensch commented 1 year ago

I'm having the same issue on Brave with ozone-platform-hint set to wayland in chrome://flags, but only when brave is maximised.

networkException commented 1 year ago

This is https://bugs.chromium.org/p/chromium/issues/detail?id=1282790

schmensch commented 1 year ago

Thanks!

Vogete commented 1 year ago

So this happened to me too, and I finally figured out a workaround for it. So it always happens to me when my leftmost monitor's position in hyprland is not starting at 0:0. As soon as I moved it to 0:0 and re-positioned all other monitors next to it (I used wdisplays for a quick fix, but I assume it works with hyprland config too), the extension popups appeared normal again. If I position it back to something more right on the plane, it becomes narrow again.

This might not be a proper fix, but at least it made my extensions usable again.

InnovateInfinity87 commented 1 year ago

So this happened to me too, and I finally figured out a workaround for it. So it always happens to me when my leftmost monitor's position in hyprland is not starting at 0:0. As soon as I moved it to 0:0 and re-positioned all other monitors next to it (I used wdisplays for a quick fix, but I assume it works with hyprland config too), the extension popups appeared normal again. If I position it back to something more right on the plane, it becomes narrow again.

This might not be a proper fix, but at least it made my extensions usable again.

This is working! as far as there is a monitor active starting at x=0 then the extensions show correctly. Thank you very much!

jbhardman commented 1 year ago

Aha, that 0x0 thing fixed it for me. I didn't even realize. I had configured my monitors so that when I did plug in to my monitor, it was at 0x0 and my laptop screen started after it at 2560x0. But most of the time I'm not plugged in. Since hyprland just acted normal without the first monitor, I didn't even imagine that my config of 2560x0 was a problem.

Now to figure out how to set variable monitor setups based on what is present...

Alxandr commented 1 year ago

Aha, that 0x0 thing fixed it for me. I didn't even realize. I had configured my monitors so that when I did plug in to my monitor, it was at 0x0 and my laptop screen started after it at 2560x0. But most of the time I'm not plugged in. Since hyprland just acted normal without the first monitor, I didn't even imagine that my config of 2560x0 was a problem.

Now to figure out how to set variable monitor setups based on what is present...

Exact same thing I had. Do let me know if you find a good solution.

Magicking commented 9 months ago

This situation happens, I fixed it by setting 0x0 to the monitor eDP-1 (I obtained from hyperctl monitors) settings which previously was at 2160x0 (due to usage of a tool to adjust another screen) eDP-1 buggy

I fixed the settings eDP-1 0x0 directly in .config/hypr/monitors.conf

eDP-1 non-buggy

LucStr commented 8 months ago

I can very consistently reproduce and fix the issue as described by @Magicking . It happens if the first monitor located at 0x0 is not connected and the eDP-1 monitor is located not at 0x0. @vaxerski can you also reproduce this?

vaxerski commented 8 months ago

sounds like that one qt bug back in the day. I very much doubt this is a hyprland issue.

izmyname commented 2 months ago

Is this still actual?

LucStr commented 2 months ago

I used to very consistently get this issue. I haven't changed my setup and just tried to recreate it based on my description and cannot anymore. Therefore I think this can be closed.

schmensch commented 2 months ago

The issue on the chromium bug tracker is fixed, thus I guess this issue is fixed as well.