Page MenuHome GnuPG

qt: Parent window on wayland
AbandonedPublic

Authored by TobiasFella on Jan 23 2024, 11:17 AM.

Details

Reviewers
ikloecker
Summary
  • configure.ac: Setup KWindowSystem dependency.
  • qt/main.cpp: Set parent window when on wayland.

This uses KWindowSystem for parenting the window; the dependency is optional. An alternative approach without KWindowSystem would require depending directly on QtWayland tools and QtWayland private API.

Test Plan

Test in combination with https://invent.kde.org/pim/kleopatra/-/merge_requests/98 and GnuPG built from the 2.4 branch

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

TobiasFella created this revision.

Can't comment on the autogen code, but the cpp code looks good

ikloecker added inline comments.
configure.ac
561

Only do this if pinentry_qt6 is built.

669

Remove "-fpic".

This revision now requires changes to proceed.Jan 23 2024, 1:14 PM
TobiasFella marked an inline comment as done.

Merged. For some reason i can't close it, so I'll abandon it instead...

Merged. For some reason i can't close it, so I'll abandon it instead...

Maybe because I didn't accept it after you addressed my requests for changes.