Fixing macOS Dock Focus Issue: Make App Windows Active on Click

Author: , Posted on Saturday, February 8th, 2025 at 7:28:01am

If you’re using macOS 14.7.3 and experiencing an annoying issue where clicking a running app’s icon in the Dock doesn’t immediately make it active for typing, you’re not alone. Instead of the expected behavior—where the app comes to the forefront, ready for interaction—you might find yourself having to click inside the app’s window before you can start working. This extra step is frustrating and unnecessary.

The Problem: App Selection Requires a Second Click

When you select a running app by clicking its Dock icon, the expected behavior is that the app window becomes active immediately. However, on macOS 14.7.3, some users have found that the focus remains on the previous application, requiring an additional click inside the newly selected app’s window before they can start typing. This can slow down workflow and make switching between applications feel sluggish.

The Fix: A Simple Terminal Command

Fortunately, there’s a quick and effective fix using the Terminal. Running the following command will ensure that clicking an app in the Dock makes its window active immediately:

Step-by-Step Guide to Apply the Fix

1. **Open Terminal:** You can find it in Applications > Utilities > Terminal, or simply search for “Terminal” using Spotlight (Cmd + Space).
2. **Enter the Command:** Copy and paste the following command into Terminal:

3. **Press Enter:** This will apply the changes and restart the Dock automatically.
4. **Test the Fix:** Click on a running app’s Dock icon and verify that its window becomes active immediately.

Why This Works

macOS includes a hidden setting called single-app mode, which, when enabled, modifies how the Dock handles app switching. Some users might inadvertently have this setting turned on, causing the behavior described above. Running the command above explicitly disables this setting, restoring normal functionality.

Additional Troubleshooting

If the issue persists after running the command, consider the following additional steps:
– Restart your Mac to ensure all changes take effect.
– Check **System Settings > Desktop & Dock** and make sure the following options are enabled:
– “When switching to an application, switch to a Space with open windows for the application.”
– “Group windows by application.”
– If the issue only occurs with specific apps, try quitting and reopening them or reinstalling them.

Conclusion

By running a simple Terminal command, you can restore the correct app-switching behavior on macOS 14.7.3 and eliminate the need for extra clicks when selecting apps from the Dock. This fix helps streamline workflow and ensures a smoother user experience.

Have you encountered this issue before? Let us know in the comments below if this fix worked for you or if you found alternative solutions!

Zsh Auto-Return on Paste

Author: , Posted on Friday, January 17th, 2025 at 9:20:32am

Have you ever found yourself frustrated when copying and pasting commands in the Apple terminal no longer behaves as expected? If you used to work with Bash on older macOS versions, you might recall that pasting a command into the terminal automatically executed it—no extra steps required. However, with the switch to Zsh as the default shell in newer macOS versions, this behavior has changed. Now, pasting doesn’t automatically press return, and that can feel like an unnecessary hurdle.

The reason for this change lies in how Zsh and terminal emulators handle pasted content. Specifically, it’s due to a feature called bracketed paste mode, which prevents commands from executing immediately upon being pasted. While this feature is useful for security and preventing accidental execution, it’s not always convenient. Fortunately, you can adjust Zsh to restore the old behavior and automatically press return after a paste.

If you’d like to go back to the simpler behavior of pasting and executing commands automatically, you can disable bracketed paste mode. This reverts Zsh to behave more like Bash in this regard.

Here’s how to disable Bracketed Paste Mode:

Open your .zshrc file in a text editor:

Add the following line to disable bracketed paste mode:

Save the file and reload your configuration to apply the change:

With this change, Zsh will no longer block the automatic execution of pasted commands.

By following these steps, you can bring back the seamless pasting experience you enjoyed with Bash. Whether you’re writing scripts, testing commands, or just trying to save time, this small adjustment can make a big difference in your workflow. Happy coding!

R.I.P. Jimmy Carter

Author: , Posted on Monday, December 30th, 2024 at 4:05:47am

James Earl Carter Jr. (October 1, 1924 – December 29, 2024) served as the 39th president of the United States

R.I.P. Terri Garr

Author: , Posted on Wednesday, October 30th, 2024 at 5:44:00pm

RIP Terri Garr
Born: 1944, Lakewood, OH
Died: October 29, 2024 (age 79 years), Los Angeles, CA

How To Prevent ZenDesk Browser Page From Refreshing Constantly in Safari on MacOS

Author: , Posted on Wednesday, June 12th, 2024 at 7:57:34am

First, enable Developer mode via the Safari menu -> Settings… -> Advanced Tab

Then, disable Cross-Origin Restrictions on the Developer Tab

Finally, be sure to refresh the page you are having issues with.

As always, YMMV!

How To Disable All Automatic WordPress Updates

Author: , Posted on Monday, April 22nd, 2024 at 10:30:48am

To disable all automatic WordPress updates, just edit your WordPress/wp-config.php file and locate the line that says:

/* That's all, stop editing! Happy blogging. */

Add the following line ABOVE that line, then save and exit:

How To Stop WordPress From Using FTP For Updates Or Asking for FTP Credentials

Author: , Posted on Monday, April 22nd, 2024 at 9:57:40am

Edit your WordPress/wp-config.php file and locate the line that says:

/* That's all, stop editing! Happy blogging. */

Add the following three lines ABOVE that line, then save and exit:

Be sure to refresh your browser to get the new settings!

BONUS

To force the use of FTP, change FS_METHOD from direct to ftpext:

From the docs: https://codex.wordpress.org/it:Modificare_wp-config.php

FS_METHOD forces the filesystem method. It should only be “direct”, “ssh2”, “ftpext”, or “ftpsockets”. Generally, You should only change this if you are experiencing update problems, If you change it, and it doesnt help change it back/remove it, Under most circumstances, setting it to ‘ftpsockets’ will work if the automatically chosen method does not.

(Primary Preference) “direct” forces it to use Direct File I/O requests from within PHP, this is fraught with opening up security issues on poorly configured hosts, This is chosen automatically when appropriate.
(Secondary Preference) “ssh2” is to force the usage of the SSH PHP Extension if installed
(3rd Preference) “ftpext” is to force the usage of the FTP PHP Extension for FTP Access, and finally
(4th Preference) “ftpsockets” utilises the PHP Sockets Class for FTP Access.

How To Clear All iptables Rules

Author: , Posted on Wednesday, March 20th, 2024 at 10:04:53am

How To Diff Two Files In Vim

Author: , Posted on Monday, February 5th, 2024 at 4:10:35pm

shell> vimdiff file1 file2
~OR~
shell> vim file1 file2
Create a vertical split window: Control-w v
Enable visual diff on the left side: :diffthis
Move the cursor to the right side buffer: Control-w Right-arrow
Enable visual diff on the left side: :diffthis

You should now see the differences highlighted on both sides.

How To Display All Virtual Hosts Defined for Apache 2

Author: , Posted on Monday, January 29th, 2024 at 4:36:44pm