Bug 672375 - Gsettings causes loss of focus
Gsettings causes loss of focus
Status: RESOLVED NOTGNOME
Product: glib
Classification: Platform
Component: gsettings
unspecified
Other Linux
: Normal major
: ---
Assigned To: Allison Lortie (desrt) (extended vacation)
gtkdev
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2012-03-19 05:27 UTC by solanosalex
Modified: 2012-03-19 12:51 UTC (History)
1 user (show)

See Also:
GNOME target: ---
GNOME version: ---


Attachments
Describes the bug (272.63 KB, video/ogg)
2012-03-19 05:27 UTC, solanosalex
Details

Description solanosalex 2012-03-19 05:27:06 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.
Comment 1 Matthias Clasen 2012-03-19 11:52:25 UTC
This sounds like a unity issue, not a gsettings issue.
Comment 2 solanosalex 2012-03-19 12:34:05 UTC
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
Comment 3 Allison Lortie (desrt) (extended vacation) 2012-03-19 12:51:55 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.