diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-07-28 16:23:55 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-07-28 16:23:55 +0200 |
commit | 7a60015ba99125b493d1cb85afc072bcebb97681 (patch) | |
tree | c161b23b42e46cac98093f8cb0940fe35c42e0a1 /compat/check-visible.hpp | |
parent | 720026a79cd6aa33c4180f2241425cdd8829b36b (diff) |
gui: don't update the main window if it's hidden
Diffstat (limited to 'compat/check-visible.hpp')
-rw-r--r-- | compat/check-visible.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/compat/check-visible.hpp b/compat/check-visible.hpp new file mode 100644 index 00000000..f5420a39 --- /dev/null +++ b/compat/check-visible.hpp @@ -0,0 +1,9 @@ +#pragma once + +#include "export.hpp" +#include "util.hpp" + +#include <QWidget> + +never_inline OTR_COMPAT_EXPORT void set_is_visible(QWidget const& w, bool force = false); +never_inline OTR_COMPAT_EXPORT bool check_is_visible(); |