mirror of
https://github.com/quickshell-mirror/quickshell.git
synced 2026-11-05 03:46:32 +00:00
core/popupanchor: rework popup anchoring and add PopupAnchor
This commit is contained in:
14 files changed
+770
-108
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user