Skip to content
This repository has been archived by the owner on Jul 23, 2020. It is now read-only.

Commit

Permalink
QGtkWindow: Display all popup-type windows as popups
Browse files Browse the repository at this point in the history
Qt::WindowType is a flags type, and there are multiple window types that
include Qt::Popup. All of these should be displayed as popup windows.

This fixes certain window types stealing focus or displaying incorrectly.
  • Loading branch information
special committed Nov 3, 2017
1 parent d16d14f commit bdbf1ac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/qgtkwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,7 @@ void QGtkWindow::create(Qt::WindowType windowType)

// Determine the window type. GTK_WINDOW_TOPLEVEL is usually right.
GtkWindowType gtkWindowType = GTK_WINDOW_TOPLEVEL;
if (windowType == Qt::ToolTip ||
windowType == Qt::Popup) {
if ((windowType & Qt::Popup) == Qt::Popup) {
gtkWindowType = GTK_WINDOW_POPUP;
}

Expand Down

0 comments on commit bdbf1ac

Please sign in to comment.