標準のgnome-shell設定では、mouse
フォーカスとsloppy
フォーカスは同じように動作します。理由は簡単ですDESKTOP
。mouse
フォーカス方式は、特に、必要DESKTOP
正しく動作させるためではなく、GNOMEシェルにはそのようなことは、その標準の化身で、ありません。残念ながら、これはつぶやきドキュメントでのみ文書化されています。dconf-editor
Gnome2メタシティー時代の古いキー/値の説明がまだあり、フォーカスにgnome-tweak-tool
切り替えたら、説明を提供するだけでなく、DESKTOP
オンに切り替えますmouse
。
以下はmutter-3。** / doc / how-to-get-focus-right.txtからの抜粋です。
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を再起動します。