yshui / picom

A lightweight compositor for X11 with animation support
https://picom.app/
Other
4.1k stars 585 forks source link

win: store focused state in struct managed_win #1198

Closed yshui closed 7 months ago

yshui commented 7 months ago

So we don't need the whole session_t just to check if a window is focused.

codecov[bot] commented 7 months ago

Codecov Report

Attention: 7 lines in your changes are missing coverage. Please review.

Comparison is base (f509008) 36.27% compared to head (7e7c2b0) 36.10%.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/yshui/picom/pull/1198/graphs/tree.svg?width=650&height=150&src=pr&token=NRSegi0Gze&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yuxuan+Shui)](https://app.codecov.io/gh/yshui/picom/pull/1198?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yuxuan+Shui) ```diff @@ Coverage Diff @@ ## next #1198 +/- ## ========================================== - Coverage 36.27% 36.10% -0.18% ========================================== Files 50 50 Lines 11484 11484 ========================================== - Hits 4166 4146 -20 - Misses 7318 7338 +20 ``` | [Files](https://app.codecov.io/gh/yshui/picom/pull/1198?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yuxuan+Shui) | Coverage Δ | | |---|---|---| | [src/c2.c](https://app.codecov.io/gh/yshui/picom/pull/1198?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yuxuan+Shui#diff-c3JjL2MyLmM=) | `40.10% <100.00%> (-0.16%)` | :arrow_down: | | [src/win.h](https://app.codecov.io/gh/yshui/picom/pull/1198?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yuxuan+Shui#diff-c3JjL3dpbi5o) | `78.12% <ø> (ø)` | | | [src/dbus.c](https://app.codecov.io/gh/yshui/picom/pull/1198?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yuxuan+Shui#diff-c3JjL2RidXMuYw==) | `21.65% <0.00%> (ø)` | | | [src/win.c](https://app.codecov.io/gh/yshui/picom/pull/1198?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yuxuan+Shui#diff-c3JjL3dpbi5j) | `67.69% <64.28%> (-1.07%)` | :arrow_down: | ... and [2 files with indirect coverage changes](https://app.codecov.io/gh/yshui/picom/pull/1198/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yuxuan+Shui)