diff options
author | 2018-10-06 14:49:33 +1000 | |
---|---|---|
committer | 2018-10-07 11:07:29 +1000 | |
commit | 1059e173f4c0139e909c7d8b5d450f30c0adad0e (patch) | |
tree | f14474b2d5118151129593443e5f8f785c3f6ab0 /include/swaylock/seat.h | |
parent | Merge pull request #2778 from emersion/swaybar-seat-pointer (diff) | |
download | sway-1059e173f4c0139e909c7d8b5d450f30c0adad0e.tar.gz sway-1059e173f4c0139e909c7d8b5d450f30c0adad0e.tar.zst sway-1059e173f4c0139e909c7d8b5d450f30c0adad0e.zip |
Only damage popups when popups have damage
The previous behaviour was to damage the entire view, which would
recurse into each popup. This patch makes it damage only the popup's
surface, and respect the surface damage given by the client.
This adds listeners to the popup's map and unmap events rather than
doing the damage in the create and destroy functions. To get the popup's
position relative to the view, a new child_impl function get_root_coords
has been introduced, which traverses up the parents.
Diffstat (limited to 'include/swaylock/seat.h')
0 files changed, 0 insertions, 0 deletions