In a tiling window desktop environment, such as sway, windows do not overlap hence they are technically still in the "foreground" even if they are not currently focused (see screenie below).
When using done in such an environment, it would be preferable if notifications were only sent if the window was not visible at all (due to being on another workspace etc). For example, in the case of the screenshot above, one might not want done to send a notification even if the window no longer has focus.
This PR adds an option to enable the above behaviour.
Motivation
In a tiling window desktop environment, such as
sway
, windows do not overlap hence they are technically still in the "foreground" even if they are not currently focused (see screenie below).When using
done
in such an environment, it would be preferable if notifications were only sent if the window was not visible at all (due to being on another workspace etc). For example, in the case of the screenshot above, one might not wantdone
to send a notification even if the window no longer has focus.This PR adds an option to enable the above behaviour.