Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Confirm
Close Dialog

User Image
Tringi
3 discussion posts
Hi,

since I have installed 3.1.8, I am unable to use two applications that make use of other desktops. I mean "other desktops" in terms of Windows API calls CreateDesktop/SwitchDesktop and so on. I suspect DisplayFusion to be yet another program using the old flawed IsWorkstationLocked code that I lately blogged about at:
http://my.opera.com/Tringi/blog/desktops-on-windows-ultimately-broken-by-every-other-application

To make long story short, and not to force anyone to read that long article, please use this code instead:

Code

bool IsWorkstationLocked () {
    if (HDESK hDesk = OpenInputDesktop (0, FALSE, DESKTOP_SWITCHDESKTOP)) {
        CloseDesktop (hDesk);
        return false;
    } else
        return true;
}


This one works just the same, and does not breaks other applications by periodically switching back to main desktop.

Anyway, is that periodical checking even necessary?
It seems that after unlocking the desktop, applications on other monitors sometimes maximize as if the TaskBars weren't there! It seems to me as if the DisplayFusion were not setting the work area correctly. Isn't it using SPI_SETWORKAREA instead of SHAppBarMessage? :wink:

I would love to see this fixed soon.

Jan
Mar 26, 2010  • #1
Jon Tackabury (BFS)'s profile on WallpaperFusion.com
Thank you for the tip, I never would have caught that without your help. You're in luck, I was posting the next beta this morning and snuck this change in. :) I've tested it out on my test machines and it appears to work perfectly, but please let me know if it is still interfering with your other software. You can download the new beta from here:
http://www.binaryfortress.com/Forum/index.php?topic=1310.0

As for your other comment about SPI_SETWORKAREA, I am using SHAppBarMessage as that is the recommended way (as far as I know) of reserving desktop space for docked applications. Any feedback is always welcome though. :)
Mar 26, 2010  • #2
User Image
Tringi
3 discussion posts
Wow, that was quick :-)
Downloaded, installed, and it's working alright. Thanks.

The other problem hasn't manifested itself for some time, so it probably wasn't caused by DisplayFusion.
Mar 26, 2010  • #3
Jon Tackabury (BFS)'s profile on WallpaperFusion.com
Thanks for following-up, please let me know if you run into any other issues. :)
Mar 26, 2010  • #4
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)