Port libtaskmanager away from QDesktopWidget

Review Request #118548 - Created June 5, 2014 and submitted

Aleix Pol Gonzalez
graesslin, hein, lbeltrame
plasmoid.screen doesn't map to QDesktopWidget indexes anymore, therefore we need to port it.

This patch uses the screen geometry to figure out what's the screen and then passes around the screen rect so that we can filter out the screens that aren't inside if the user asks for it.
I have played with it and seems to work.
Eike Hein
Aleix Pol Gonzalez
Commit Hook
Aleix Pol Gonzalez
Review request changed

Status: Closed (submitted)

Martin Flöser
> It fudges window geometry by removing 5 pixels from each side of the rect with a note about window decoration overscan. This is likely ancient code, is it still relevant today to do this?

Most likely yes, IIRC this is for handling shadows. Shadows at the border bleed into the next screen.