Sub topic 1
Windows, apps and the desktop
Spaces, Mission Control and tiling all rearrange the same three things: apps, windows and the desktop. This chapter defines how macOS treats each one, so the later chapters can build on it.
Prerequisites
This chapter assumes you can already do the following:
- Use the Dock and the menu bar.
- Open System Settings and find a panel by name or by search.
- Use common modifier keys (Control, Option, Command, Fn) and a trackpad or mouse.
You don't need the terminal for this chapter.
Apps and windows are separate things
An app is a running program. A window is a rectangle of content that the app draws. One app can own many windows, or none.
This explains behavior that confuses many new Mac users:
- Clicking the red close button closes a window. Most apps keep running afterward. A small dot under the app's Dock icon shows it is still open.
- Command-Q quits the app and closes all of its windows.
- Command-W closes only the front window.
- Command-H hides every window of the app. The app keeps running, and clicking its Dock icon brings the windows back.
- Command-M minimizes the front window into the Dock, next to the Trash.
The frontmost app and the menu bar
At any moment exactly one app is frontmost, which means it receives your keystrokes. The menu bar at the top of the screen always belongs to that app. The Apple menu is the one part that stays the same.
This differs from Windows and many Linux desktops, where each window carries its own menu. On a Mac, a window can be visible without its app being frontmost. A window from another app can sit in view while you type into a different app. When a menu is missing an item you expect, check which app is frontmost.
Switching between apps and windows
Two shortcuts cover most switching, and they work at different levels:
| Shortcut | What it switches |
|---|---|
| Command-Tab | Between apps, in most-recently-used order |
| Command-` (backtick) | Between windows of the current app |
| Command-Shift-Tab | Backward through the app list |
Command-Tab brings up an app, not a specific window. If the app has several windows, you land on whichever was last in front. Use Command-` to reach the others. Both shortcuts are the keyboard counterpart of what Mission Control shows visually, which a later chapter covers.
What the desktop is
"Desktop" means two related things:
- The background layer behind all windows. It shows your wallpaper and, by default, any files placed on it.
- The surface your windows sit on. Each Space (introduced in the next chapter) has its own desktop surface.
The files shown on the desktop are the contents of the ~/Desktop folder in your home directory. The Finder draws them as icons on top of the wallpaper. They are ordinary files, not a separate storage area.
Windows have a stacking order, front to back. Clicking a window raises it. Moving windows aside to reach the desktop is called "Show Desktop". By default it is triggered with Fn-F11 or a trackpad spread gesture (thumb and three fingers apart). Windows slide to the screen edges, and they come back when you repeat the gesture.
Window controls you will use later
The three colored buttons at the top-left of a window matter for the rest of this tutorial:
- Red closes the window.
- Yellow minimizes it to the Dock.
- Green enters full screen. Hovering over it (or clicking and holding, depending on your macOS version) also offers tiling choices. Later chapters cover both.
A window can also be resized by dragging its edges, which is the manual form of tiling.
Why this model matters
Every tool in this tutorial acts on windows, not on apps. Spaces hold windows. Tiling resizes windows. Assigning an app to a Space is a shortcut for placing all of that app's windows. When something seems to be in the wrong place, ask two questions: which app owns it, and which window is it?
Exercise
You close the last window of Mail with the red button and the Mail menus still appear when you click its Dock icon. Is Mail running, and which shortcut would fully quit it?
Show answer
Yes, Mail is still running, because closing a window does not quit the app. A dot under its Dock icon confirms this. Command-Q quits it. Command-W would only close a window.
Exercise
You have three Safari windows open and want to jump to the next Safari window without leaving Safari. Why does Command-Tab not do this, and what does?
Show answer
Command-Tab switches between apps, so it picks the app, not a specific window. Command-` (backtick) cycles through the windows of the frontmost app.