From kde-devel Wed Mar 08 22:56:31 2000 From: Rik Hemsley Date: Wed, 08 Mar 2000 22:56:31 +0000 To: kde-devel Subject: Re: visibility? X-MARC-Message: https://marc.info/?l=kde-devel&m=95256320402365 #if David Smith > Rik Hemsley wrote: > > > > So if some apps don't set WM_COMMAND, how do we know when they have > > mapped ? The answer is, we don't. I can't see a way to be sure, and > > if we can't be sure, we shouldn't mess, as we'll just get into > > trouble. > > I saw another way to get a clue about which app is behind a window > in scwm: Use LD_PRELOAD when starting a program to load a library > that overrides XCreateWindow() and sets a property with the pid > whenever a window is opened. > I guess, depending on preferences, you would call this either really > cool or really ugly... Sounds like a good idea to me. Does it always work properly in scwm ? If so, I think we should use it. We could add a line to the desktop files of apps that are 'compliant' (set WM_COMMAND) to say they work and use this for the rest. Rik -- Shuffle fragments.