pmaports/kde/kwin/0003-Apply-kwin-framebuffer-fix-until-commit-93b7eea-is-merged.patch
Federico Amedeo Izzo 9c04dc4a1b
kde/kwin: add patch to handle fbdev properly (!279)
This patch applies commit 93b7eea67db418751e7fe4a86bc19430c153588b
from upstream kwin. Remove this patch once kwin stable used by
postmarketOS will include the upstream commit.

[ci:skip-build]: already built successfully
2019-03-15 18:38:10 +01:00

27 lines
1,011 B
Diff

diff --git a/plugins/platforms/fbdev/fb_backend.cpp b/plugins/platforms/fbdev/fb_backend.cpp
--- a/plugins/platforms/fbdev/fb_backend.cpp
+++ b/plugins/platforms/fbdev/fb_backend.cpp
@@ -126,20 +126,8 @@
return false;
}
- // correct the color info, and try to turn on screens, assuming this is a non-primary framebuffer device
- varinfo.grayscale = 0;
- varinfo.transp.offset = 24;
- varinfo.transp.length = 8;
- varinfo.transp.msb_right = 0;
- varinfo.red.offset = 16;
- varinfo.red.length = 8;
- varinfo.red.msb_right = 0;
- varinfo.green.offset = 8;
- varinfo.green.length = 8;
- varinfo.green.msb_right = 0;
- varinfo.blue.offset = 0;
- varinfo.blue.length = 8;
- varinfo.blue.msb_right = 0;
+ // Activate the framebuffer device, assuming this is a non-primary framebuffer device
+ varinfo.activate = FB_ACTIVATE_NOW | FB_ACTIVATE_FORCE;
ioctl(m_fd, FBIOPUT_VSCREENINFO, &varinfo);
// Probe the device for new screen information.