]> git.mdlowis.com Git - proto/labwc.git/commit
xdg,xwayland: raise sub-view correctly relative to other sub-views
authorJohn Lindgren <john@jlindgren.net>
Tue, 17 Oct 2023 05:28:36 +0000 (01:28 -0400)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Tue, 17 Oct 2023 16:41:43 +0000 (18:41 +0200)
commita047e4a4e309c04300d3d3a7fb12e78bf3139e88
treebe9dbeb65f1a9a24360e7e40e81e51f308e9139a
parent8e2ec3437b654f3dabc79453a928c5c1bc6ce9f6
xdg,xwayland: raise sub-view correctly relative to other sub-views

When a parent view has multiple sub-views (dialogs) visible, focusing
one sub-view ought to raise it above the others. This doesn't currently
happen -- focusing a sub-view raises the whole group of views together,
but has no effect on the relative stacking order between them.

This seems like a simple oversight in xdg/xwayland_view_move_to_front()
that's pretty easy to fix.

Add FIXMEs to deduplicate this logic in future.

Tested with HomeBank: the Import dialog pops up an additional Open File
dialog, which before this change appears behind the Import dialog (and
clicking on it does not raise it to the front). After this change, the
Open File dialog appears in front as expected.
src/xdg.c
src/xwayland.c