1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 18:56:34 +01:00

In Windows transparent background must be disabled when app. is fullscreen.

This commit is contained in:
S. Razi Alavizadeh 2012-08-21 00:14:29 +04:30
parent 551498fa06
commit 07e17f7b47

View File

@ -1454,6 +1454,11 @@ void QupZilla::fullScreen(bool make)
bookmarksToolbar()->hide(); bookmarksToolbar()->hide();
m_navigationBar->hide(); m_navigationBar->hide();
m_tabWidget->getTabBar()->hide(); m_tabWidget->getTabBar()->hide();
#ifdef Q_WS_WIN
if (m_usingTransparentBackground) {
QtWin::enableBlurBehindWindow(this, false);
}
#endif
} }
else { else {
setWindowState(windowState() & ~Qt::WindowFullScreen); setWindowState(windowState() & ~Qt::WindowFullScreen);
@ -1463,6 +1468,11 @@ void QupZilla::fullScreen(bool make)
m_bookmarksToolbar->setVisible(m_bookmarksToolBarVisible); m_bookmarksToolbar->setVisible(m_bookmarksToolBarVisible);
m_navigationBar->setVisible(m_navigationVisible); m_navigationBar->setVisible(m_navigationVisible);
m_tabWidget->showTabBar(); m_tabWidget->showTabBar();
#ifdef Q_WS_WIN
if (m_usingTransparentBackground) {
QtWin::enableBlurBehindWindow(this);
}
#endif
} }
m_actionShowFullScreen->setChecked(make); m_actionShowFullScreen->setChecked(make);