tips:Gnome3左上アクティビティ マウス ホットコーナー無効
created 2012-04-29 modified 2012-04-29
Fedora16の話です。
Gnome3で、意図せず、デスクトップ左上にマウスが移動したとき、アクティビティ画面になるのがウザい。
アクティビティ画面にしたければ
マウス移動だけでアクティビティ画面になるのが本当に苛立たしい。
プログラムの入力中にこの現象になると切れそうになる。
ということで無効化DEATH。
rootで
vi /usr/share/gnome-shell/js/ui/panel.js
_containerAllocateという関数の最後をコメントアウトして
ログインしなおす、と。
うむ。
Gnome3で、意図せず、デスクトップ左上にマウスが移動したとき、アクティビティ画面になるのがウザい。
アクティビティ画面にしたければ
- Alt-F1でもできるし、
- Windowsキーでもできるし、
- 左上でマウスクリックでもできる。
マウス移動だけでアクティビティ画面になるのが本当に苛立たしい。
プログラムの入力中にこの現象になると切れそうになる。
ということで無効化DEATH。
rootで
vi /usr/share/gnome-shell/js/ui/panel.js
_containerAllocateという関数の最後をコメントアウトして
_containerAllocate: function(actor, box, flags) {
this._label.allocate(box, flags);
// The hot corner needs to be outside any padding/alignment
// that has been imposed on us
let primary = Main.layoutManager.primaryMonitor;
let hotBox = new Clutter.ActorBox();
let ok, x, y;
if (actor.get_direction() == St.TextDirection.LTR) {
[ok, x, y] = actor.transform_stage_point(primary.x, primary.y)
} else {
[ok, x, y] = actor.transform_stage_point(primary.x + primary.width, primary.y);
// hotCorner.actor has northeast gravity, so we don't need
// to adjust x for its width
}
hotBox.x1 = Math.round(x);
hotBox.x2 = hotBox.x1 + this._hotCorner.actor.width;
hotBox.y1 = Math.round(y);
hotBox.y2 = hotBox.y1 + this._hotCorner.actor.height;
//kkk// this._hotCorner.actor.allocate(hotBox, flags);
},
ログインしなおす、と。
うむ。