Allow WM_COMMAND-less app to autostart
commit5ee19c2308b85ab23a8d3644e3cb1d547009a6a3
authorDavid Maciejak <david.maciejak@gmail.com>
Sun, 19 Feb 2023 22:24:44 +0000 (20 06:24 +0800)
committerCarlos R. Mafra <crmafra@gmail.com>
Mon, 20 Feb 2023 15:00:55 +0000 (20 15:00 +0000)
tree21209d4ef4cef20c6cdf094471e21ca2588d78a6
parentfabd4252ab2cb3993fca8cf73fba8b91ba714708
Allow WM_COMMAND-less app to autostart

For apps which are not setting the window WM_COMMAND property like those old
apps using Motif toolkit (I am thinking of NEdit for example)
it's bringing some issues in windowmaker which is relying on it for a few interactions.
Especially,
*an app without WM_COMMAND will not be saved during the workspace state
(so session restore is not working for them)
*when added to the dock, the settings parameters are empty and need to be filled
*cannot autostart from the dock (even if the settings are manually filled and saved)
*right click on the app titlebar, and choosing Launch has no effect

The patch below allows the workspace state to be saved for those apps without WM_COMMAND
that have been launched from the dock. We are just reusing what have been set in the
Application Path Settings of the dock app (and it does not require extra libs like libXRes).
src/session.c