add get client pid to x11 surface#1670
Conversation
Did you find some SPEC that lists what exactly the I assume the |
|
Here is the protocol description https://www.x.org/releases/X11R7.7/doc/resourceproto/resproto.txt but I don't know if it holds the informations you are looking for. But this protocol is used by Mutter to address the same need. What's could go wrong exactly? |
|
Okay sorry, after reading the documentation this seems fine to me. Can you rebase instead of get rid of the merge commit please? |
|
Sorry I probably made a wrong manipulation trying to rebase and I had to make a new PR #1741 |
In order to be able to match a Surface to the
.desktopfile that started it retrieving the proper surface PID is mandatory.Currently the
X11Surface.pid()return the underlying_NET_WM_PIDartifact which is not robust enough as theSignalFlatpak App return "2" for exemple while the newX11Surface.get_client_pidreturn the proper PID.I took inspiration of the following mutter code
The code use the X11
Resprotocol to query theLOCAL_CLIENT_PIDfor a X11 window.