diff options
author | Ilya Fedin <fedin-ilja2010@ya.ru> | 2021-02-19 04:37:06 +0400 |
---|---|---|
committer | John Preston <johnprestonmail@gmail.com> | 2021-02-19 12:41:09 +0400 |
commit | f1ee5b5704172de5b75646c402f30eea9ec1aed3 (patch) | |
tree | bb45bf2ad7d6e759fadf1ee7533b3630a4b0e009 /Telegram/SourceFiles/platform/linux/linux_xlib_helper.cpp | |
parent | a9c08552c898f611599126d431fb092934a82fd4 (diff) |
Expose gtk integration to lib_base
Diffstat (limited to 'Telegram/SourceFiles/platform/linux/linux_xlib_helper.cpp')
-rw-r--r-- | Telegram/SourceFiles/platform/linux/linux_xlib_helper.cpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/Telegram/SourceFiles/platform/linux/linux_xlib_helper.cpp b/Telegram/SourceFiles/platform/linux/linux_xlib_helper.cpp deleted file mode 100644 index 270f0ae8f8..0000000000 --- a/Telegram/SourceFiles/platform/linux/linux_xlib_helper.cpp +++ /dev/null @@ -1,38 +0,0 @@ -/* -This file is part of Telegram Desktop, -the official desktop application for the Telegram messaging service. - -For license and copyright information please follow this link: -https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL -*/ -#include "platform/linux/linux_xlib_helper.h" - -extern "C" { -#include <X11/Xlib.h> -} - -namespace Platform { -namespace internal { - -class XErrorHandlerRestorer::Private { -public: - Private() - : _oldErrorHandler(XSetErrorHandler(nullptr)) { - } - - ~Private() { - XSetErrorHandler(_oldErrorHandler); - } - -private: - int (*_oldErrorHandler)(Display *, XErrorEvent *); -}; - -XErrorHandlerRestorer::XErrorHandlerRestorer() -: _private(std::make_unique<Private>()) { -} - -XErrorHandlerRestorer::~XErrorHandlerRestorer() = default; - -} // namespace internal -} // namespace Platform |