Ostrość „mysz” lub „niechlujstwo” robią to samo na gnome-shell

12

Mój problem jest bardzo denerwujący. Bardzo dobrze znam fokus myszy, ale teraz nie działa.

Wewnątrz gnome-tweak-toolostatniej opcji „Windows” ma przełącznik „Windows Focus Mode”. Ustawiłem go na „mysz”, ale to nie działa. Działa tak jak opcja „niechlujstwa”. Mam nadzieję, że inny użytkownik gnome rozumie mój problem.

wprowadź opis zdjęcia tutaj

AKTUALIZACJA:

wprowadź opis zdjęcia tutaj

maniat1k
źródło
tylko zwykła sesja ... nic innego się z tym nie dzieje.
maniat1k
Wymagane jest również „org.gnome.desktop.wm.preferences true„ podbij po kliknięciu ”prawda.

Odpowiedzi:

11

W standardowej konfiguracji powłoki gnome mousefokus i sloppyfokus zachowują się identycznie. Powód jest prosty: nie ma DESKTOP. Metoda mouseogniskowania potrzebuje DESKTOPw szczególności do prawidłowego działania, ale nie ma czegoś takiego w skorupie gnoma w jej standardowym wcieleniu. Niestety jest to udokumentowane tylko w dokumentach mutter. dconf-editornadal ma stary opis klucza / wartości z czasów metacity Gnome2 i gnome-tweak-toolnawet nie zawiera opisu, nie mówiąc już o DESKTOPwłączeniu po przejściu na mousefokus.
Oto fragment 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".

Wróćmy do problemu. Musisz „włączyć” pulpit, aby mousefokus działał poprawnie. To może być skończone:

  • używając gnome-tweak-tool> Desktop> Have file manager handle the desktop>ON
  • używając dconf-editor>> org.gnome.desktop.background>>> show-desktop-iconszaznaczone
  • w terminalu działa: gsettings set org.gnome.desktop.background show-desktop-icons true

Uruchom ponownie gnome-shell po zastosowaniu wszystkich ustawień.

don_crissti
źródło
Zrozumiałem wyjaśnienie, ale nie zadziałało rozwiązanie, które mi podajesz. Mój przyjaciel ma to wszystko ustawione, a opcje działają tak, jak powinny. Mamy tę samą wersję gnoma i tę samą wersję dystrybucji.
maniat1k
po krótkim teście okazało się, że mój problem ponownie przeszedł -org.gnome.desktop.wm.preferences auto-raise truedo -org.gnome.desktop.wm.preferences auto-raise falsepodziękowań @don_crissti
maniat1k
To brzmi jak błąd w GNOME3. Jeśli w GNOME2 wejście na pulpit spowodowało, że stało się ono nieprawidłowe, to samo powinno się zdarzyć w obszarze, w którym byłby pulpit. Prawdopodobnie nie jest warte zgłaszania błędu bez łatki, ponieważ nie oczekuję, że naprawią to.
Stuart Axon