Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: emit view decoration updated signal even for unmapped views #2350

Merged
merged 1 commit into from
May 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/view/xdg-shell/xdg-toplevel-view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ void wf::xdg_toplevel_view_t::set_decoration_mode(bool use_csd)
{
bool was_decorated = should_be_decorated();
this->has_client_decoration = use_csd;
if ((was_decorated != should_be_decorated()) && is_mapped())
if (was_decorated != should_be_decorated())
{
wf::view_decoration_state_updated_signal data;
data.view = {this};
Expand Down
2 changes: 1 addition & 1 deletion src/view/xwayland/xwayland-toplevel-view.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ class wayfire_xwayland_view : public wf::toplevel_view_interface_t, public wayfi
{
bool was_decorated = should_be_decorated();
this->has_client_decoration = use_csd;
if ((was_decorated != should_be_decorated()) && is_mapped())
if (was_decorated != should_be_decorated())
{
wf::view_decoration_state_updated_signal data;
data.view = {this};
Expand Down
Loading