]> git.mdlowis.com Git - proto/labwc.git/commit
Revert "desktop: try harder to avoid focusing unfocusable views"
authorJohn Lindgren <john@jlindgren.net>
Tue, 3 Oct 2023 02:12:22 +0000 (22:12 -0400)
committerJohn Lindgren <john@jlindgren.net>
Wed, 4 Oct 2023 14:28:39 +0000 (10:28 -0400)
commit9be6bd8b1d0c879b936d39cbcaf925392f17d3a2
tree97a613a812d7ccf219c4568d89b2ce1dc3a10a7c
parentdb41b5eec03c824bb712fea647798bbb88498918
Revert "desktop: try harder to avoid focusing unfocusable views"

Some X11 applications (MATLAB is known to be one) apparently still use
the outdated "globally active" input focus model, in which they declare
they don't want the window manager to give them input focus, but expect
to be able to take it explicitly themselves via XSetInputFocus().

Such applications are not a good fit for the Wayland world, and may have
issues even with remotely modern X11 window managers that prevent such
"focus stealing". Labwc certainly doesn't (and won't) allow it. However,
to avoid breaking such applications entirely, let's still allow the user
to give focus by clicking in the window.

For the sake of applications that legitimately don't want to be given
input focus (such as taskbars or other "panels"), we still don't give
focus to them automatically when another view is closed, and they aren't
shown in Alt-Tab.

This reverts commit cae96b0cce441dd9f1981c312ae0108b3b4e42c9.
src/desktop.c