Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't bypass the window manager #171

Merged
merged 1 commit into from
Sep 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/frontend/TopBar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,7 @@ TopBar::~TopBar() {
}

void TopBar::SetupTopBar() {
#if defined(linux) || defined(__linux__) || defined(__linux)
this->setWindowFlags(
Qt::Window | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint | Qt::X11BypassWindowManagerHint |
Qt::WindowDoesNotAcceptFocus | Qt::NoDropShadowWindowHint);
#else
this->setWindowFlags(Qt::Window | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint);
#endif
this->setFixedSize(QSize(this->width(), this->height()));

if (gSettings->getTopBarWindowPosition() == QPoint(0, 0)) {
Expand Down
5 changes: 4 additions & 1 deletion src/frontend/TopBar.ui
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
</rect>
</property>
<property name="toolTip">
<string>View information about current layout</string>
<string>View information about the current layout</string>
</property>
<property name="icon">
<iconset resource="images.qrc">
Expand Down Expand Up @@ -117,6 +117,9 @@
<height>27</height>
</rect>
</property>
<property name="toolTip">
<string>Quit</string>
</property>
<property name="text">
<string/>
</property>
Expand Down