Skip to content

Fix incorrect damage being applied on popups#5980

Merged
Xyene merged 1 commit intoswaywm:masterfrom
tadeokondrak:popups-incorrect-damage
Feb 21, 2021
Merged

Fix incorrect damage being applied on popups#5980
Xyene merged 1 commit intoswaywm:masterfrom
tadeokondrak:popups-incorrect-damage

Conversation

@tadeokondrak
Copy link
Copy Markdown
Contributor

This is because popup iteration is based on container->surface_x and container->surface_y, which are only set after the new location is damaged.

To reproduce:

  • Open a floating window and a popup that hangs over the bottom or right
  • Move the window in the direction of the popup overhang
  • The previous position of the popup is damaged, not the new one

To reproduce:

- Open a floating window and a popup that hangs over the bottom or right
- Move the window in the direction of the popup overhang
- The previous position of the popup is damaged, not the new one
Copy link
Copy Markdown
Member

@Xyene Xyene left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@Xyene Xyene merged commit f58f054 into swaywm:master Feb 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants