集中“鼠标”或“草率”在gnome-shell上做同样的事情


12

我的问题实际上很烦人。我对鼠标焦点非常熟悉,但是现在无法正常工作。

gnome-tweak-tool最后一个选项“ windows”内有“ windows focus mode”开关。我将其设置为“鼠标”,但它不起作用。它的作用就像“马虎”选项。我希望另一个gnome用户理解我的问题。

在此处输入图片说明

更新:

在此处输入图片说明


只是例行会议...其他都没错。
maniat1k 2012年

另外,还需要“ org.gnome.desktop.wm.preferences单击时引发true”。

Answers:


11

在标准的gnome-shell设置中,mouse焦点和sloppy焦点的行为相同。原因很简单:没有DESKTOP。该mouse对焦方法,尤其是,需要DESKTOP以正常工作,但在GNOME壳没有这样的事情,在其标准的化身。不幸的是,这仅在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。


我理解其中的解释,但无法解决您提供给我的解决方案。我的一个朋友确实设置了所有这些选项,所以选项可以正常工作。我们具有相同的gnome版本和相同的发行版版本。
maniat1k 2012年

一个小测试后发现我的问题-org.gnome.desktop.wm.preferences auto-raise trueswithced到-org.gnome.desktop.wm.preferences auto-raise false再次感谢@don_crissti
maniat1k

这听起来像是GNOME3中的错误。如果在GNOME2中进入桌面使其无效,则在该桌面所在的区域上也会发生同样的情况。没有补丁就不值得提交错误,因为我对他们解决此问题的期望为零。
斯图尔特·阿克森
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.