1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-14 19:12:11 +01:00

Fixed moving restored windows to virtual desktops

- it wasn't working on some X servers
This commit is contained in:
Luke Dashjr 2012-11-04 23:50:20 +01:00 committed by nowrep
parent 363b1716f4
commit 66081f8625

View File

@ -1945,6 +1945,9 @@ void QupZilla::moveToVirtualDesktop(int desktopId)
return; return;
} }
// Fixes issue when the property wasn't set on some X servers
setVisible(true);
XChangeProperty(display, winId(), net_wm_desktop, XA_CARDINAL, XChangeProperty(display, winId(), net_wm_desktop, XA_CARDINAL,
32, PropModeReplace, (unsigned char*) &desktopId, 1L); 32, PropModeReplace, (unsigned char*) &desktopId, 1L);
} }