답변:
표준 그놈 쉘 설정에서 mouse
초점과 sloppy
초점은 동일하게 동작합니다. 이유는 간단하다 DESKTOP
. mouse
초점 방법은 상세하게는, 필요 DESKTOP
제대로 작동하기 위해하지만 그놈 쉘에서 그런 일이 표준 화신,이 없다. 불행히도, 이것은 문서 문서에만 문서화되어 있습니다. dconf-editor
여전히 Gnome2 메타 시티 시간의 이전 키 / 값 설명이 있으며 포커스로 전환하면 켜기를 gnome-tweak-tool
토글하지 않는 설명도 제공하지 않습니다 .
다음은 mutter-3에서 발췌 한 내용입니다. ** / doc / how-to-get-focus-right.txt :DESKTOP
mouse
Focus method Behavior
click When a user clicks on a window, focus it
sloppy When an EnterNotify is received, focus the window
mouse Same as sloppy, but also defocus when mouse enters DESKTOP window
Note that these choices (along with the choice that clicking on a window raises it for the click focus method) introduces the following invariants for focus from mouse activity:
Focus method Invariant
click The window on top is focused
sloppy If the mouse is in a window, then it is focused; if the mouse is not in a window, then the most recently used window is focused.
mouse If the mouse is in a non-DESKTOP window, then it is focused; otherwise, the designated "no_focus_window" is focused
However, there are a number of cases where the current focus window becomes invalid and another should be chosen. Some examples are when a focused window is closed or minimized, or when the user changes workspaces. In these cases, there needs to be a rule consistent with the above about the new window to choose.
Focus method Behavior
click Focus the window on top
sloppy Focus the window containing the pointer if there is such a window, otherwise focus the most recently used window.
mouse Focus the non-DESKTOP window containing the pointer if there is one, otherwise focus the designated "no_focus_window".
이제 문제로 돌아가겠습니다. mouse
초점이 제대로 작동하려면 데스크탑을 "활성화"해야합니다 . 이 작업을 수행 할 수 있습니다.
gnome-tweak-tool
> Desktop
> Have file manager handle the desktop
>ON
dconf-editor
>> org.gnome.desktop.background
>>> show-desktop-icons
확인gsettings set org.gnome.desktop.background show-desktop-icons true
모든 설정을 적용한 후 gnome-shell을 다시 시작하십시오.
-org.gnome.desktop.wm.preferences auto-raise true
-org.gnome.desktop.wm.preferences auto-raise false