On 6/19/07, Hans Leidekker <[EMAIL PROTECTED]> wrote:
It's your idea so you should get the credit. I was just helping out with the implementation.
Your code, your copyright =)
There will allways be Linux distributions that don't install the xdg tools by default, and it's not inconceivable that they will be supported on MacOS one day. So I think it's better to just try to run xdg-screensaver, warn when it fails, but ignore the error. From reading MSDN this is consistent with the semantics of LockWorkStation.
ok I will give that a shot
I also think it's better to not lock the entire desktop when Wine runs in a virtual desktop. I remember looking for a way to know whether we are running in desktop mode and found this snippet from PaintDesktop(): HWND hwnd = GetDesktopWindow(); /* check for an owning thread; otherwise don't paint anything (non-desktop mode) */ if (GetWindowThreadProcessId( hwnd, NULL )) ... I copied it but somehow it didn't work for me.
I'll check this as well. I did not even think about the virtual desktop window case. I'll look in to this a bit. Perhaps we should pop up a message box or something for that case to warn the user. -- Steven Edwards "There is one thing stronger than all the armies in the world, and that is an idea whose time has come." - Victor Hugo