Move glx version check functionality to platform plugin
ClosedPublic

Authored by graesslin on Nov 10 2016, 2:09 PM.

Details

Summary

Glx version is only required once in the standalone x11 platform. No
need to have that in the shared kwinglutils library.

Removes one xlib usage from shared kwin.

Diff Detail

Repository
R108 KWin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
graesslin updated this revision to Diff 8072.Nov 10 2016, 2:09 PM
graesslin retitled this revision from to Move glx version check functionality to platform plugin.
graesslin updated this object.
graesslin edited the test plan for this revision. (Show Details)
graesslin added reviewers: KWin, Plasma on Wayland.
Restricted Application added projects: Plasma on Wayland, KWin. · View Herald TranscriptNov 10 2016, 2:09 PM
Restricted Application added subscribers: kwin, plasma-devel. · View Herald Transcript
broulik added inline comments.
plugins/platforms/x11/standalone/glxbackend.cpp
253

Just fyi: QVersionNumber is public since Qt 5.6

bshah accepted this revision.Nov 16 2016, 6:37 AM
bshah added a reviewer: bshah.
bshah added a subscriber: bshah.

With @broulik 's comment addressed.. +1

This revision is now accepted and ready to land.Nov 16 2016, 6:37 AM
In D3329#62981, @bshah wrote:

With @broulik 's comment addressed.. +1

for the record: I'm not going to port the code to QVersionNumber. Internally KWin has the kVersionNumber which is used quite a lot in the code base.

This revision was automatically updated to reflect the committed changes.