News for hackers. Stuff that matters.
Re:It is as if you were doing work by tempestn on Wednesday July 05, 2017 @06:18AM (#14701203)
This just makes me sad that windows stealing focus, grabbing a randomly typed space bar, and submitting themselves before you can even read them is still a thing.
Re:It is as if you were doing work by threepipeproblm on Wednesday July 05, 2017 @08:56AM (#14701994)
I remember the first time I used X Window and noticed windows not stealing focus. It was one of those times where you realize you have not even understood the full extent of your abuse. Approx. 20 years later and Windows still can't get this basic thing right.
Re:It is as if you were doing work by blauditore on Wednesday July 05, 2017 @11:04AM (#14702930)
I totally see the problem, but on the other hand, I explicitly disabled focus steal protection in CCSM because I occasionally missed some (to me relevant) notifications.
Re:It is as if you were doing work by threepipeproblm on Wednesday July 05, 2017 @11:18AM (#14703060)
Right. It's not really a binary problem. Perhaps something like the Windows Action Center, or whatever it's called, is really needed at O/S level to make non-stealing work best as the default.
Re:It is as if you were doing work by tempestn on Wednesday July 05, 2017 @03:58PM (#14705644)
There are certainly plenty of ways it could be improved. Delaying focus stealing if a key has been pressed in the last 500ms or so would be a good start.
Re:It is as if you were doing work by XorNot on Thursday July 06, 2017 @07:01AM (#14709445)
This is a really good idea and I'm going to go request it as a feature in Cinnamon right now.
Re:It is as if you were doing work by nitrogen on Friday July 07, 2017 @02:28AM (#14716496)
Isn't that how it already works in a lot of WMs?
Re:It is as if you were doing work by btschaegg on Wednesday July 05, 2017 @12:09PM (#14703609)
Today I found out that MS "solutions" can also go in the other direction by not telling you what happened.

Scenario:

- You're forced to use TFS. - Your credientials are managed by a Windows domain controller. - The same credentials are used to authentify with TFS. - Your password expires.

Welcome to a non-trivial amount of time trying to figure out what happened. This is the single scenario I've encountered so far where interrupting my workflow would have been sensible, and it seemingly is also the only one where Windows doesn't do it.

I miss Git so much ._.

Re:It is as if you were doing work by rhencke on Wednesday July 05, 2017 @12:49PM (#14704010)
I've been there. I feel your pain.

In hopes of helping to restore some of your sanity, I've found the following helps immensely: https://github.com/git-tfs/git-tfs

Re:It is as if you were doing work by btschaegg on Friday July 07, 2017 @09:09AM (#14718025)
Thanks for the tip.

Unfortunately, there still are workplaces that are absolutely paranoid when it comes to software you can use, so I won't be able to try it. But hey, there's always a chance someday we'll get to change the VCS we're using, so hope dies last :)

Re:It is as if you were doing work by eckza on Wednesday July 05, 2017 @07:24AM (#14701497)
One of my favorite things about OSX is the fact that applications rarely / never are allowed to steal focus.
Re:It is as if you were doing work by pinum on Wednesday July 05, 2017 @07:31AM (#14701532)
It's better than on Windows but it still happens to me, especially with update alerts.
Re:It is as if you were doing work by otachack on Wednesday July 05, 2017 @09:19AM (#14702151)
It most definitely does, such as Google Calendar event alerts at least under Chrome. I'm not sure why it doesn't have unobtrusive desktop alerts instead. I'll have to take a look later to see if that's an option.
Re:It is as if you were doing work by Beltiras on Wednesday July 05, 2017 @10:13AM (#14702514)
There is an option in Google Calendar under settings -> notifications -> Use browser notifications instead of interruptive alerts
Re:It is as if you were doing work by girvo on Wednesday July 05, 2017 @09:42AM (#14702293)
Chrome on macOS always drove me mental, because of their absolutely terrible and reimplemented notifications system. Drove me batty. Nowadays I browse in Safari and develop in Firefox and Safari, so I don't know if it still does this
Re:It is as if you were doing work by emilecantin on Wednesday July 05, 2017 @09:58AM (#14702402)
They actually switched to native notifications as of about two weeks ago.
Re:It is as if you were doing work by valuearb on Wednesday July 05, 2017 @11:07AM (#14702965)
I'm still on an older version of Office and it has it's own alerts system that I can't control. Maddening.
Re:It is as if you were doing work by memco on Wednesday July 05, 2017 @12:18PM (#14703696)
While I mostly agree with you I recently had a corrupted keychain that I was trying to fix. In the process I was transferring items from one keychain to another and had 100+ dialogs pop up asking me to enter my password to allow each individual item. Once started, there was no way to cancel the dialogs easily, no way to bulk authenticate, no way to see/sort the windows and no way to associate any particular dialog with any particular to know where I was in the process if I did decide to abort and start again. Fun times.

Granted this was an edge case and is not the norm. It was still a pretty horrid UX.

Re:It is as if you were doing work by rocky1138 on Wednesday July 05, 2017 @08:38AM (#14701892)
Plug in a phone and a popup steals focus. Some photo thing.
Re:It is as if you were doing work by ytjohn on Wednesday July 05, 2017 @08:57AM (#14701999)
True, but you probably won't be actively working in some other app when that happens. Your hands were, up until that point, actively involved in connecting the phone to the laptop. It's still a bit annoying - maybe you only wanted to plug in the phone in order to charge it. But I'd say for that moment, the phone is your focus, and the pop-up app is related to that.
Re:It is as if you were doing work by rocky1138 on Wednesday July 05, 2017 @09:27AM (#14702194)
I plug in the phone to charge it or to test an app I'm writing, so no, the phone is not my focus and the pop-up is not related to what I'm doing.

A much better solution is a notification, which is what Windows and KDE do.

Re:It is as if you were doing work by nerdponx on Wednesday July 05, 2017 @09:14AM (#14702109)
You also have the option to disable it once you have plugged in the phone for the first time, in both Photos and iTunes.
Re:It is as if you were doing work by otachack on Wednesday July 05, 2017 @09:18AM (#14702144)
For each new phone. It's beyond annoying and can be embarrassing when Photos opens to reveal your colleague's pictures stored on his/her phone. I've learned to open Photos first and hide as much of the application as possible before plugging in a new phone.
Re:It is as if you were doing work by andypants on Wednesday July 05, 2017 @01:09PM (#14704189)
I have the opposite experience. Focus stealing is such a problem for me in OSX to the point where I actually noticed the issue. I'm sure there's focus stealing in windows as well but never to the point where it got in the way of work.

> never are allowed to steal focus

How are they not 'allowed'? Because it is certainly allowed. Just about every app steals focus.

Re:It is as if you were doing work by r00fus on Thursday July 06, 2017 @02:22AM (#14708510)
The biggest offender for me is Webex on macOS. Start conference, steals focus. Presenter switches, steal focus. Really annoying as I multitask (often to slack for coordination) at the same time.
Re:It is as if you were doing work by mercurysmessage on Wednesday July 05, 2017 @08:19AM (#14701775)
I rarely, if ever, have focus stolen on my windows machines.
Re:It is as if you were doing work by ajanuary on Wednesday July 05, 2017 @08:24AM (#14701801)
For a while I was using the Rocket.Chat desktop client. Sometimes an alert would just flash the taskbar, other times an alert would steal focus. I couldn't work out why only sometimes.
Re:It is as if you were doing work by T-zex on Wednesday July 05, 2017 @07:53AM (#14701638)
FaceTime FacePalm
Re:It is as if you were doing work by pluma on Thursday July 06, 2017 @08:46AM (#14709922)
Literally happened to me the other day:

I was typing something in Slack and sudd-

> A new version of Ubuntu is available. Would you like to upgrade? [Don't Upgrade] [Ask me Later] [Yes, Upgrade Now]

-enly I found out that "spacebar" acts as a click of the selected default button and the rest of my sentence ended up in the password field.

I dismissed the slightly confused password prompt and didn't see the message again for the remainder of the day.

Yes, Canonical, while I'm typing something in Slack is exactly the moment I want to tell you whether I want to update my operating system.

Re:It is as if you were doing work by ansible on Thursday July 06, 2017 @10:31AM (#14710675)
I hate this kind of thing so much!

We already have a mechanism for detecting if the user is busy or not, which activates the screen saver and power management.

If you really need to get my attention, a little flashing icon in the corner (while not preferred) is still much better than stealing my focus.

Re:It is as if you were doing work by GFischer on Thursday July 06, 2017 @11:38AM (#14711189)
Well, my cat did install Windows 10 on my laptop. I guess he can upgrade Ubuntu too :)

https://news.ycombinator.com/item?id=12308232

Re:It is as if you were doing work by michaelmior on Wednesday July 05, 2017 @08:26AM (#14701818)
One thing that still happens to me on an infrequent but regular basis is clicking on something I didn't intend because something popped up under my cursor. In general, this seems like a hard problem to solve. I want notifications to pop up but I could happen to be doing something in that area of the screen.
Re:It is as if you were doing work by owenjonesuk on Wednesday July 05, 2017 @09:36AM (#14702253)
Firefox implemented something a few years ago where buttons on pop-ups were greyed out for a few seconds, to avoid this. I believe it was a security concern that an online game could get you to click in a certain place at a certain time, and make a pop-up just before it asking for permission to do something, so you clicked Accept without meaning to.
Re:It is as if you were doing work by digi_owl on Wednesday July 05, 2017 @11:56AM (#14703472)
They also have something like this on the download dialog, where the accept button stays gray unless the dialog has focus.
Re:It is as if you were doing work by threepipeproblm on Wednesday July 05, 2017 @08:57AM (#14702001)
It seems like the O/S should have some idea of normal human response time and just filter out inputs that follow too closely.
Re:It is as if you were doing work by jpitz on Wednesday July 05, 2017 @10:38AM (#14702719)
....and you've just destroyed a whole slew of ui automation scripts.
Re:It is as if you were doing work by threepipeproblm on Wednesday July 05, 2017 @11:16AM (#14703049)
Good point. It would be fine with me to place the burden of disabling the behavior onto such scripts, though, if I never had to deal with again. Apparently Firefox actually implemented this, so presumably it did break some people's scripts. But for an established O/S, I guess this would be a huge deal.
Re:It is as if you were doing work by dTal on Wednesday July 05, 2017 @08:55AM (#14701982)
A trivial solution is a delay before any pop-up accepts input. Chances are a click on something that only appeared 50 ms ago is a mistake.
Re:It is as if you were doing work by tempestn on Saturday July 08, 2017 @08:19PM (#14727803)
Just had this on my phone. Was playing a game that involved a bunch of tapping, and some system message (I have no idea what) popped up and was immediately dismissed (or confirmed!) as I happened to come down on one of its buttons at that exact instant. Seems so obvious that these things shouldn't become active until a few hundred ms after they appear.
Re:It is as if you were doing work by flukus on Wednesday July 05, 2017 @08:01PM (#14707195)
Paradox games, which are plagued by pop up windows to the extent where they're quite similar to this game, seem to have implemented a ~50ms delay to accept a click. In the thousands of hours I've put into the game and the millions of popups I've received playing them I've rarely clicked something accidentally.
Re:It is as if you were doing work by narrowtux on Wednesday July 05, 2017 @07:20AM (#14701472)
Just like real life. I am sure this is intentional.