]> git.mdlowis.com Git - proto/labwc.git/commit
desktop: switch workspaces and optionally raise in desktop_focus_view()
authorJohn Lindgren <john@jlindgren.net>
Wed, 27 Sep 2023 22:37:28 +0000 (18:37 -0400)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Thu, 28 Sep 2023 01:38:51 +0000 (03:38 +0200)
commite5aef0331996aa0c77f7ea2f0af390b40704f626
tree09016c5c2fd60525b18777bc8b8ce4bea4fea5b5
parente77330bc3fe733412e92f4e90d797d31ee6c5652
desktop: switch workspaces and optionally raise in desktop_focus_view()

Make desktop_focus_view() always switch to the workspace containing the
view being focused. It doesn't make much sense for an invisible view to
have the keyboard focus.

Also add an optional "raise" parameter to desktop_focus_view(). This
allows the common pattern of desktop_focus_view() + view_move_to_front()
to be reduced to a single function call.
include/labwc.h
include/workspaces.h
src/action.c
src/cursor.c
src/desktop.c
src/foreign.c
src/keyboard.c
src/view-impl-common.c
src/workspaces.c
src/xdg.c
src/xwayland.c