If you need some uninterrupted time while working on your Mac desktop, hold down the option key then click the three horizontal lines in the upper-right corner of your screen. These lines should change color from white to gray. Option-click again to resume your desktop notifications.