...to enable unfocusing currently focused window on desktop click.
Works with:
<mouse>
<default />
<context name="Root">
<mousebind button="Left" action="Press">
<action name="Unfocus" />
</mousebind>
</context>
</mouse>
Fixes: #1230
*<action name="Focus" />*
Give focus to window under cursor.
+*<action name="Unfocus" />*
+ Remove focus from the window that is currently focused.
+
*<action name="Raise" />*
Restack the current window above other open windows.
ACTION_TYPE_TOGGLE_ALWAYS_ON_TOP,
ACTION_TYPE_TOGGLE_ALWAYS_ON_BOTTOM,
ACTION_TYPE_FOCUS,
+ ACTION_TYPE_UNFOCUS,
ACTION_TYPE_ICONIFY,
ACTION_TYPE_MOVE,
ACTION_TYPE_RAISE,
"ToggleAlwaysOnTop",
"ToggleAlwaysOnBottom",
"Focus",
+ "Unfocus",
"Iconify",
"Move",
"Raise",
desktop_focus_view(view, /*raise*/ false);
}
break;
+ case ACTION_TYPE_UNFOCUS:
+ seat_focus_surface(&server->seat, NULL);
+ break;
case ACTION_TYPE_ICONIFY:
if (view) {
view_minimize(view, true);