If the cursor is moved to the right corner of the taskbar it automatically displays the desktop, is that what you mean?
If that is what you mean then you can disable it if you want. Simply move the cursor to the right corner of the taskbar and right-click, then uncheck "Peek at desktop".