Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit cabf508

Browse files
fix: linux
1 parent 06accc8 commit cabf508

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎src/PopupWindow.cpp‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,14 @@ pmb::PopupWindow::PopupWindow(int t_displayDuration, const QEasingCurve& t_movin
1111
m_appearanceDuration(t_appearanceDuration)
1212
{
1313
setWindowFlags(Qt::FramelessWindowHint | // Disable window decoration
14-
Qt::Tool | // Discard display in a separate window
14+
Qt::ToolTip | /* Discard display in a separate window (like as Qt::Tool)
15+
* With attribute <Qt::WA_X11NetWmWindowTypeToolBar> provide non multi notification tabs in toolbar on Linux (like as Qt::SubWindow)
16+
* Also provides non-disappearing menu (QWidget::contextMenuEvent) in MainWindow during notification
17+
*/
1518
Qt::WindowStaysOnTopHint); // Set on top of all windows
1619
setAttribute(Qt::WA_TranslucentBackground); // Indicates that the background will be transparent
1720
setAttribute(Qt::WA_ShowWithoutActivating); // At the show, the widget does not get the focus automatically
21+
setAttribute(Qt::WA_X11NetWmWindowTypeToolBar); // see above about <Qt::SubWindow>
1822

1923
m_opacityAnimation.setTargetObject(this); // Set the target animation
2024
m_opacityAnimation.setPropertyName("popupOpacity");

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /