Skip to content

Commit

Permalink
fix: all window force has titlebar
Browse files Browse the repository at this point in the history
reset titlebar when personalization does not set notitlebar

Log:
  • Loading branch information
justforlxz committed Oct 17, 2024
1 parent 24d3939 commit 39280e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/treeland/helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,11 @@ void Helper::onXdgSurfaceAdded(WXdgSurface *surface)
wrapper->setBlur(attached->backgroundType() == Personalization::BackgroundType::Blur);
};
auto updateNoTitlebar = [wrapper, attached] {
wrapper->setNoTitleBar(attached->noTitlebar());
if (attached->noTitlebar()) {
wrapper->setNoTitleBar(true);
} else {
wrapper->resetNoTitleBar();
}
};

connect(attached, &PersonalizationAttached::backgroundTypeChanged, wrapper, updateBlur);
Expand Down

0 comments on commit 39280e4

Please sign in to comment.