focus "mouse" または "sloppy" は gnome-shell で同じことを行います。

focus

私の問題は実際に非常に迷惑です。マウスフォーカスに非常に慣れていますが、今は動作しません。

最後のオプション「windows」gnome-tweak-toolには、「windows focus mode」スイッチが含まれています。 「マウス」に設定しましたが動作しません。これは「sloppy」オプションと同じように機能します。他のgnomeユーザーが私の問題を理解できることを願っています。

ここに画像の説明を入力してください。

修正する:

ここに画像の説明を入力してください。

ベストアンサー1

標準のgnome-shell設定では、mouseフォーカスとsloppyフォーカスは同じように機能します。理由は簡単です。なしですDESKTOPmouse特にフォーカス方法がDESKTOP正しく動作するにはが必要ですが、gnome-shellの標準バージョンにはそのようなものはありません。残念ながら、これはミューター文書にのみ文書化されています。dconf-editorGnome2メタシティ時代の古いキー/値の説明はまだ残っており、フォーカスに切り替えた後に開いた状態を切り替えることはgnome-tweak-tool言うまでもなく説明も提供しません。以下はmutter-3.**/doc/how-to-get-focus-right.txtから抜粋したものです。DESKTOPmouse

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-toolDesktopHave file manager handle the desktopON
  • >>>>>をdconf-editor使って確認してください。org.gnome.desktop.backgroundshow-desktop-icons
  • 端末で次を実行します。gsettings set org.gnome.desktop.background show-desktop-icons true

すべての設定を適用したら、gnome-shellを再起動します。

おすすめ記事