Commit Graph

6 Commits

Author SHA1 Message Date
Nicolas Fella
606e1a53d3 Convert license statements to SPDX 2024-08-08 11:02:04 +00:00
Nicolas Fella
4169a9f50a Don't pass unused window ids around
The wid is only relevant for the xcb framebuffer

We can just query it there, no need to pass it around everywhere
2022-08-03 22:00:16 +02:00
Friedrich W. H. Kossebau
b72e478df0 Use more explicit 2018-07-17 14:45:09 +02:00
Friedrich W. H. Kossebau
b1df09d2bf Consistently use override 2018-07-17 14:40:23 +02:00
Friedrich W. H. Kossebau
da36f0a7fb Consistently use nullptr 2018-07-17 14:38:06 +02:00
Alexey Min
b2cb3e8204 Implement XCB framebuffer plugin (port from x11)
Previously used x11 plugin does not compile with Qt5, because Qt5 does
not use Xlib, it uses xcb. Rewrite screen capture plugin from Xlib to
xcb.

I made xcb libs compile required dependency, but availability of X
shared memory extension is checked at runtime. It is used to effectively
get image pixels data, instead of transfering 8Mb over the wire. Xdamage
is used to limit image getting operations only within actually changed
rectangles of screen.

BUG: 377998

Tested on single-monitor system and dual-monitor, where primary monitor
does not start at (0,0) coordinate. Image transfer works fine.
Dual-monitor only has problems with receiving mouse cursor position and
clicks, but this should be fixed outside of framebuffer plugin.

Differential Revision: https://phabricator.kde.org/D5211
2017-06-15 23:21:58 +02:00