summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-02-16 19:02:15 +0200
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-02-16 19:02:15 +0200
commit8d867f418d8640dbe9be91dc5f220cb8d196ea4b (patch)
treec260862822fc89e13dab554b32245d3f89e49d63 /src
parentFix clang build (diff)
downloadnheko-8d867f418d8640dbe9be91dc5f220cb8d196ea4b.tar.xz
Hide emoji picker when the app loses focus
fixes #184
fixes #209
Diffstat (limited to 'src')
-rw-r--r--src/emoji/Panel.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/emoji/Panel.cc b/src/emoji/Panel.cc

index 0b99eb81..064dd6d5 100644 --- a/src/emoji/Panel.cc +++ b/src/emoji/Panel.cc
@@ -38,9 +38,8 @@ Panel::Panel(QWidget *parent) "QScrollBar:vertical { width: 0px; margin: 0px; }" "QScrollBar::handle:vertical { min-height: 30px; }"); - setAttribute(Qt::WA_TranslucentBackground, true); setAttribute(Qt::WA_ShowWithoutActivating, true); - setWindowFlags(Qt::FramelessWindowHint | Qt::ToolTip); + setWindowFlags(Qt::Popup | Qt::FramelessWindowHint | Qt::NoDropShadowWindowHint); auto mainWidget = new QWidget(this); mainWidget->setMaximumSize(width_, height_);