forked from quickshell/quickshell
core/popupanchor: rework popup anchoring and add PopupAnchor
This commit is contained in:
parent
14910b1b60
commit
ebfa8ec448
14 changed files with 770 additions and 108 deletions
16
src/wayland/popupanchor.hpp
Normal file
16
src/wayland/popupanchor.hpp
Normal file
|
@ -0,0 +1,16 @@
|
|||
#pragma once
|
||||
|
||||
#include <qwindow.h>
|
||||
|
||||
#include "../core/popupanchor.hpp"
|
||||
|
||||
class WaylandPopupPositioner: public PopupPositioner {
|
||||
public:
|
||||
void reposition(PopupAnchor* anchor, QWindow* window, bool onlyIfDirty = true) override;
|
||||
[[nodiscard]] bool shouldRepositionOnMove() const override;
|
||||
|
||||
private:
|
||||
static void setFlags(PopupAnchor* anchor, QWindow* window);
|
||||
};
|
||||
|
||||
void installPopupPositioner();
|
Loading…
Add table
Add a link
Reference in a new issue