core/popupanchor: rework popup anchoring and add PopupAnchor

This commit is contained in:
outfoxxed 2024-07-23 22:12:27 -07:00
parent 14910b1b60
commit ebfa8ec448
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
14 changed files with 770 additions and 108 deletions

View file

@ -4,12 +4,14 @@
#include <qtenvironmentvariables.h>
#include "../core/plugin.hpp"
#include "platformmenu.hpp"
#ifdef QS_WAYLAND_WLR_LAYERSHELL
#include "wlr_layershell.hpp"
#endif
void installPlatformMenuHook();
void installPopupPositioner();
namespace {
class WaylandPlugin: public QuickshellPlugin {
@ -27,7 +29,10 @@ class WaylandPlugin: public QuickshellPlugin {
return isWayland;
}
void init() override { installPlatformMenuHook(); }
void init() override {
installPlatformMenuHook();
installPopupPositioner();
}
void registerTypes() override {
#ifdef QS_WAYLAND_WLR_LAYERSHELL