mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-09-18 08:22:33 +02:00
Fix mouse hook not being called on HTMLWallpaper
This commit is contained in:
parent
d19fe5b977
commit
6fdf2f5fb9
@ -242,7 +242,7 @@ void WinWindow::setupWallpaperForMultipleScreens(const QVector<int>& activeScree
|
||||
void WinWindow::setupWindowMouseHook()
|
||||
{
|
||||
// MUST be called before setting hook for events!
|
||||
if (type() == BaseWindow::WallpaperType::Qml) {
|
||||
if (type() != BaseWindow::WallpaperType::Video) {
|
||||
winGlobalHook = &m_window;
|
||||
if (!(mouseHook = SetWindowsHookEx(WH_MOUSE_LL, MouseHookCallback, nullptr, 0))) {
|
||||
qDebug() << "Faild to install mouse hook!";
|
||||
@ -316,7 +316,7 @@ void WinWindow::checkForFullScreenWindow()
|
||||
HMONITOR wallpaper = MonitorFromWindow(m_windowHandle, dwFlags);
|
||||
int monitorIndex = GetMonitorIndex(monitor);
|
||||
int wallpaperIndex = GetMonitorIndex(wallpaper);
|
||||
// qDebug() << monitorIndex << wallpaperIndex;
|
||||
// qDebug() << monitorIndex << wallpaperIndex;
|
||||
|
||||
// If the window that has WS_MAXIMIZE is at the same monitor as this wallpaper
|
||||
if (monitorIndex == wallpaperIndex) {
|
||||
|
Loading…
Reference in New Issue
Block a user