2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Redirect IME to search on Windows.

This commit is contained in:
John Preston
2024-05-07 13:18:58 +04:00
parent 1f3a3ec04b
commit 2cb0651b04
6 changed files with 56 additions and 6 deletions

View File

@@ -119,7 +119,8 @@ public:
void launchDrag(std::unique_ptr<QMimeData> data, Fn<void()> &&callback);
rpl::producer<> leaveEvents() const;
[[nodiscard]] rpl::producer<> leaveEvents() const;
[[nodiscard]] rpl::producer<> imeCompositionStarts() const;
virtual void updateWindowIcon() = 0;
void updateTitle();
@@ -185,6 +186,7 @@ protected:
return false;
}
void imeCompositionStartReceived();
void setPositionInited();
virtual QRect computeDesktopRect() const;
@@ -214,6 +216,7 @@ private:
bool _isActive = false;
rpl::event_stream<> _leaveEvents;
rpl::event_stream<> _imeCompositionStartReceived;
bool _maximizedBeforeHide = false;