kranewl

A wlroots-based dynamic Wayland compositor, written in C++, configurable with Lua
git clone git://git.deurzen.net/kranewl
Log | Files | Refs | LICENSE

commit ad3664a835920dd7519bb4914aa3a3e2aff2d3da
parent 16ca98918e74b0af06f67c39b6033f79835c6feb
Author: deurzen <max@deurzen.net>
Date:   Fri,  1 Jul 2022 18:48:44 +0200

fixes ws initial view track mismatch focus bug

Diffstat:
Msrc/kranewl/workspace.cc | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/kranewl/workspace.cc b/src/kranewl/workspace.cc @@ -238,6 +238,9 @@ Workspace::add_view_to_track(View_ptr view, SceneLayer layer) m_tracks[layer]->insert_at_back(view); + if (m_tracks[m_track_layer]->empty()) + m_track_layer = layer; + if (layer == m_track_layer) mp_active = view; }