GNOME Bugzilla – Bug 672375
Gsettings causes loss of focus
Last modified: 2012-03-19 12:51:55 UTC
Created attachment 210071 [details] Describes the bug Hello! I am not 100% sure who to 'blame' actually, but there is this bug. This is how to reproduce: (important <-> in UBUNTU 12.04) 1) Restart your system 2) Right Click on Desktop -> Change Desktop Background -> Select randomly an image and notice that your desktop background changes without something going wrong. 3) Close the window 4) Hit the 'Windows key' so as to open the Dashboard 5) Press the 'Esc' button to close the dash 6) Repeat step 2 but now notice that the focus is being lost by the window responsible for changing the background. Please, see the attached file.
This sounds like a unity issue, not a gsettings issue.
I would say that both of them cause it (if you run the gsettings command in order to change the desktop background from inside a terminal window, like gnome-terminal, you'll notice that the focus of the terminal in which you run gsettings is lost). So, I am quite sure that gsettings itself causes this, but I don't know if it is its fault or unity's... I've filled a bug against unity as well: https://bugs.launchpad.net/ubuntu/+source/unity/+bug/959238
As someone who has done work on both GSettings and Unity, I agree with Matthias's assessment. GSettings is a very low-level library and it does not have the ability to change window focus -- some other program (possibly Unity, possibly another) must be acting in this way as a result of being notified of the change by GSettings. I'm not 100% sure that it's Unity, but I _am_ 100% sure that it's not GSettings.