เน้น“ เมาส์” หรือ“ เลอะเทอะ” ทำสิ่งเดียวกันกับ gnome-shell


12

ปัญหาของฉันน่ารำคาญจริง ๆ ฉันคุ้นเคยกับการโฟกัสของเมาส์มาก แต่ตอนนี้มันไม่ทำงาน

ภายในgnome-tweak-toolตัวเลือกสุดท้าย "windows" มีสวิตช์ "windows focus mode" ฉันได้ตั้งค่าเป็น "เม้าส์" แต่มันไม่ทำงาน มันทำหน้าที่เหมือนตัวเลือก "เลอะเทอะ" ฉันหวังว่าผู้ใช้ gnome อีกคนจะเข้าใจปัญหาของฉัน

ป้อนคำอธิบายรูปภาพที่นี่

UPDATE:

ป้อนคำอธิบายรูปภาพที่นี่


แค่เซสชั่นปกติ ... ไม่มีอะไรผิดปกติกับมัน
maniat1k

และต้องใช้ "org.gnome.desktop.wm.preferences การเพิ่มเมื่อคลิกจริง"

คำตอบ:


11

ในการตั้งค่า gnome-shell มาตรฐานการmouseโฟกัสและsloppyโฟกัสจะทำงานเหมือนกัน เหตุผลง่ายๆคือ: DESKTOPไม่มี mouseวิธีการปรับโฟกัสโดยเฉพาะอย่างยิ่งความต้องการDESKTOPเพื่อการทำงานอย่างถูกต้อง แต่ไม่มีสิ่งดังกล่าวในคำพังเพยเปลือกในชาติมาตรฐาน น่าเสียดายที่เอกสารนี้มีการบันทึกไว้ในเอกสาร Mutter dconf-editorยังคงมีคำอธิบายคีย์ / ค่าเก่าจาก Gnome2 metacity ครั้งและ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 หลังจากใช้การตั้งค่าทั้งหมดของคุณ


ฉันเข้าใจคำอธิบาย แต่มันไม่ได้ผลในการแก้ปัญหาที่คุณให้ฉัน เพื่อนของฉันมีทุกสิ่งที่กำหนดไว้นี้และตัวเลือกการทำงานตามที่ควร เรามีคำพังเพยที่เหมือนกันกับเวอร์ชั่นของ distro เดียวกัน
maniat1k

หลังจากการทดสอบเล็กน้อยพบว่าปัญหาของฉัน-org.gnome.desktop.wm.preferences auto-raise trueswithced เพื่อ-org.gnome.desktop.wm.preferences auto-raise falseขอบคุณอีกครั้ง @don_crissti
maniat1k

ฟังดูเหมือนบั๊กใน GNOME3 หากใน GNOME2 การเข้าสู่เดสก์ท็อปทำให้มันไม่ถูกต้องควรจะเกิดขึ้นเมื่ออยู่เหนือพื้นที่ที่เดสก์ท็อปควรจะเป็น มันอาจไม่คุ้มที่จะส่งบั๊กโดยที่ไม่มีแพทช์เนื่องจากฉันไม่มีความคาดหวังที่จะแก้ไขข้อผิดพลาดนี้
Stuart Axon
โดยการใช้ไซต์ของเรา หมายความว่าคุณได้อ่านและทำความเข้าใจนโยบายคุกกี้และนโยบายความเป็นส่วนตัวของเราแล้ว
Licensed under cc by-sa 3.0 with attribution required.