Make emote popup remember last position (#1580)

* Use existing moveTo to ensure window stay within desktop geometry
This commit is contained in:
mmb L
2020-04-13 19:15:51 +08:00
committed by GitHub
parent 6f926e7d77
commit ebfcb49e8c
4 changed files with 34 additions and 0 deletions
+5
View File
@@ -51,6 +51,9 @@ public:
int windowCount();
Window *windowAt(int index);
QPoint emotePopupPos();
void setEmotePopupPos(QPoint pos);
virtual void initialize(Settings &settings, Paths &paths) override;
virtual void save() override;
void closeAll();
@@ -89,6 +92,8 @@ private:
bool initialized_ = false;
QPoint emotePopupPos_;
std::atomic<int> generation_{0};
std::vector<Window *> windows_;