linux - xfce 鼠标穿透
伊谢尔伦
伊谢尔伦 2017-04-17 12:03:26
0
1
443

之前用 Ubuntu 时, 当我移动鼠标到终端下面的浏览器窗口并转动滚轮时, 终端并不会失去焦点, 同时浏览器页面也会滚动。

windows 是通过软件实现的, 只不过现在不常用 windows。

现在用的环境是 ArchLinux + xfce4, 想实现这样的效果, 该怎么办呢?

---update 2015.1.21---

目前换成 openbox 体验到了这个效果, 整体感觉比 xfce 更舒爽, 定制性不错

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(1)
黄舟

This is the window manager's job.
The general principle is that the movement of the mouse will trigger many events. When the mouse leaves a window, the X server will trigger an event called LEAVE (I forgot the specific name, you can refer to the X protocol); when the mouse enters a window , the X server will trigger an event called ENTER. The window manager will capture all events. If the window manager wants the window that the mouse enters to gain focus, it will forward the event to the corresponding window, or send a focus acquisition event to the corresponding window.
So if you want to achieve the function you want, you must either check whether the window manager has corresponding settings. If not, you can only modify the window manager code.
gnome-shell has this function:) You can try it.

For details, please refer to the X Agreement.

Or switch to openbox?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!