]> git.mdlowis.com Git - proto/labwc.git/commit
view: remove server->last_raised_view
authortokyo4j <hrak1529@gmail.com>
Wed, 19 Mar 2025 00:54:20 +0000 (09:54 +0900)
committerHiroaki Yamamoto <hrak1529@gmail.com>
Tue, 1 Apr 2025 07:48:40 +0000 (16:48 +0900)
commitde49054d75aea8754fcedd2d9710d633cebce584
treee4ef50c7ae71a324d9d91e1d101c629f1f02b37f
parent2404297f2d6838d49b5b6704ea34149de47b1826
view: remove server->last_raised_view

We were skipping in view_move_to_front() if the raised view is already
cached as server->last_raised_view. But this was prone to bugs that
windows cannot be raised even though they are actually not placed at the
top in the scene.

This happened when a window is mapped but view_move_to_front() is not
called in view_impl_map() for some reason. Example cases were:
- a window is minimized before being mapped (#2627)
- a window is mapped while window switcher is active (#2629)

Also, this problem was the root cause of #1640 and #2582, though they are
already fixed.

Therefore, this commit removes server->last_raised_view. In order to
eliminate unnecessary communications between labwc and xwayland (ref:
db591d1), I'll introduce another caching mechanism in the next commit.
include/labwc.h
src/view-impl-common.c
src/view.c