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

Don't use window title for IPC.

This commit is contained in:
John Preston
2023-01-09 16:08:34 +04:00
parent 6288da2f3d
commit c49dac57b7
12 changed files with 156 additions and 66 deletions

View File

@@ -30,6 +30,17 @@ inline bool SkipTaskbarSupported() {
inline void InstallLauncher(bool force) {
}
inline void ActivateThisProcess() {
}
// 1 - secondary, 2 - primary.
void SetWindowPriority(not_null<QWidget*> window, uint32 priority);
[[nodiscard]] uint64 ActivationWindowId(not_null<QWidget*> window);
// Activate window with windowId (if found) or the largest priority.
void ActivateOtherProcess(uint64 processId, uint64 windowId);
namespace ThirdParty {
void start();
@@ -43,7 +54,6 @@ inline void finish() {
inline void psCheckLocalSocket(const QString &) {
}
void psActivateProcess(uint64 pid = 0);
QString psAppDataPath();
QString psAppDataPathOld();
void psSendToMenu(bool send, bool silent = false);