pinning: Remember across restart

This commit is contained in:
Kim Woelders 2022-05-01 11:05:59 +02:00
parent 1cc55627d2
commit c350cbcf4b
1 changed files with 4 additions and 3 deletions

View File

@ -1436,10 +1436,11 @@ SnapshotEwinApply(EWin * ewin)
sn->track_changes = 1;
use_flags = sn->use_flags;
/* If restarting don't override stuff set in attributes/properties */
/* If restarting don't override stuff set in attributes/properties.
* Sticky state is handled too because of pinning. */
if (ewin->state.identified)
use_flags &= SNAP_USE_LAYER | SNAP_USE_SHADOW | SNAP_USE_GROUPS |
SNAP_USE_OPACITY;
use_flags &= SNAP_USE_LAYER | SNAP_USE_STICKY | SNAP_USE_GROUPS |
SNAP_USE_OPACITY | SNAP_USE_SHADOW;
if (use_flags & SNAP_USE_STICKY)
{