[platforms/x11] Get rid of some code duplication in windowed backend
ClosedPublic

Authored by zzag on Sep 14 2019, 6:56 PM.

Details

Summary

We repeat quite a lot of code that finds an output by xcb_window_t and
translates global X11 screen coordinates to output coordinates.

Test Plan

Compiles.

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.
zzag created this revision.Sep 14 2019, 6:56 PM
Restricted Application added a project: KWin. · View Herald TranscriptSep 14 2019, 6:56 PM
Restricted Application added a subscriber: kwin. · View Herald Transcript
zzag requested review of this revision.Sep 14 2019, 6:56 PM
zzag edited the summary of this revision. (Show Details)Sep 14 2019, 7:09 PM
gladhorn accepted this revision.Sep 14 2019, 8:18 PM
gladhorn added a subscriber: gladhorn.

Nice, makes it easier to read :)

This revision is now accepted and ready to land.Sep 14 2019, 8:18 PM
This revision was automatically updated to reflect the committed changes.