elementary / wingpanel

Stylish top panel that holds indicators and spawns an application launcher
https://elementary.io
GNU General Public License v3.0
137 stars 44 forks source link

PanelWindow: Support getting monitor dimensions under wayland #356

Closed davidmhewitt closed 3 years ago

davidmhewitt commented 3 years ago

Currently if you try to run wingpanel under Wayland, it ends up as the minimum size because get_primary_monitor returns null on Wayland.

We'll need to add some sort of interface for getting the primary monitor in the future, but this at least gets wingpanel to the correct size (and hence usable) on single-monitor machines for now. It might do the wrong thing on multi monitor machines depending on the order.

pushqrdx commented 3 years ago

may i ask how are you launching the panel under wayland? it's falling back to xwayland here