Skip to content

qt5/qtwayland: fix popups being placed outside the screen#200872

Merged
lovesegfault merged 1 commit intoNixOS:stagingfrom
lorenz:backport-qt5-popup-patch
Nov 12, 2022
Merged

qt5/qtwayland: fix popups being placed outside the screen#200872
lovesegfault merged 1 commit intoNixOS:stagingfrom
lorenz:backport-qt5-popup-patch

Conversation

@lorenz
Copy link
Copy Markdown
Contributor

@lorenz lorenz commented Nov 12, 2022

Description of changes

QT 5 did not set layout constraints on their popups. This causes some compositors like GNOME to place the popups partially outside the screen. This change backports the corresponding fix, but with an exclusion for KDE as its current version does not work well with layout constraints.

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.11 Release Notes (or backporting 22.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@lorenz lorenz requested a review from ttuegel as a code owner November 12, 2022 15:13
@github-actions github-actions bot added the 6.topic: qt/kde Object-oriented framework for GUI creation label Nov 12, 2022
@ofborg ofborg bot added 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 2501-5000 This PR causes many rebuilds on Linux and should target the staging branches. labels Nov 12, 2022
@lorenz lorenz changed the base branch from master to staging November 12, 2022 15:28
@github-actions github-actions bot added 6.topic: erlang General-purpose, concurrent, functional high-level programming language 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: python Python is a high-level, general-purpose programming language. 8.has: module (update) This PR changes an existing module in `nixos/` labels Nov 12, 2022
QT 5 did not set layout constraints on their popups. This causes some
compositors like GNOME to place the popups partially outside the screen.
This change backports the corresponding fix, but with an exclusion for
KDE as its current version does not work well with layout constraints.
@lorenz lorenz force-pushed the backport-qt5-popup-patch branch from 92966ef to fd94629 Compare November 12, 2022 15:30
@github-actions github-actions bot removed 8.has: module (update) This PR changes an existing module in `nixos/` 6.topic: python Python is a high-level, general-purpose programming language. 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: erlang General-purpose, concurrent, functional high-level programming language labels Nov 12, 2022
@lovesegfault lovesegfault merged commit 6a01be6 into NixOS:staging Nov 12, 2022
@lorenz lorenz deleted the backport-qt5-popup-patch branch November 12, 2022 19:34
vcunat added a commit that referenced this pull request Nov 17, 2022
...into staging-next.  Also merged topologically later in 6a01be6.
@K900
Copy link
Copy Markdown
Contributor

K900 commented Nov 18, 2022

This regressed 5.12/5.14, which we still have in a few places.

@K900 K900 mentioned this pull request Nov 18, 2022
31 tasks
vcunat added a commit that referenced this pull request Nov 18, 2022
@vcunat
Copy link
Copy Markdown
Member

vcunat commented Nov 18, 2022

OK, applied conditionally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: qt/kde Object-oriented framework for GUI creation 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 2501-5000 This PR causes many rebuilds on Linux and should target the staging branches.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants