diff --git a/YACReader/main_window_viewer.cpp b/YACReader/main_window_viewer.cpp index 32bd6479..b3a87bf9 100644 --- a/YACReader/main_window_viewer.cpp +++ b/YACReader/main_window_viewer.cpp @@ -1070,12 +1070,13 @@ void MainWindowViewer::toFullScreen() previousSize = size(); showNormal(); - setWindowFlags(previousWindowFlags | Qt::FramelessWindowHint); + setWindowFlags(previousWindowFlags | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint); - const QRect r = windowHandle()->screen()->geometry(); + QRect r = windowHandle()->screen()->geometry(); - move(r.x(), r.y()); - resize(r.width(), r.height() + 1); + r.setHeight(r.height() + 1); + + setGeometry(r); show(); viewer->show(); diff --git a/YACReaderLibrary/library_window.cpp b/YACReaderLibrary/library_window.cpp index 7d6c8967..8da72b0c 100644 --- a/YACReaderLibrary/library_window.cpp +++ b/YACReaderLibrary/library_window.cpp @@ -2001,12 +2001,13 @@ void LibraryWindow::toFullScreen() previousSize = size(); showNormal(); - setWindowFlags(previousWindowFlags | Qt::FramelessWindowHint); + setWindowFlags(previousWindowFlags | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint); - const QRect r = windowHandle()->screen()->geometry(); + QRect r = windowHandle()->screen()->geometry(); - move(r.x(), r.y()); - resize(r.width(), r.height() + 1); + r.setHeight(r.height() + 1); + + setGeometry(r); show(); comicsViewsManager->comicsView->toFullScreen(); diff --git a/common/yacreader_global.h b/common/yacreader_global.h index ec447320..167f2f4a 100644 --- a/common/yacreader_global.h +++ b/common/yacreader_global.h @@ -3,7 +3,7 @@ #include -#define VERSION "9.6.1" +#define VERSION "9.6.2" #define REMOTE_BROWSE_PERFORMANCE_WORKAROUND "REMOTE_BROWSE_PERFORMANCE_WORKAROUND"