[gnome-shell] keyboard: Rename focusTracker "reset" signal to "window-grabbed"
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] keyboard: Rename focusTracker "reset" signal to "window-grabbed"
- Date: Fri, 12 Mar 2021 16:00:59 +0000 (UTC)
commit cb68bbee3633891d3c511e8c07bbbb8da69a1a6d
Author: Jonas Dreßler <verdre v0yd nl>
Date: Thu Feb 18 12:23:59 2021 +0100
keyboard: Rename focusTracker "reset" signal to "window-grabbed"
What this signal does is fire when a window was grabbed. A receiver
might want to do something special when a window was grabbed, whereas
"reset" can mean anything. Rename the "reset" signal to
"window-grabbed".
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1728>
js/ui/keyboard.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js
index aae72b960f..f411cf1457 100644
--- a/js/ui/keyboard.js
+++ b/js/ui/keyboard.js
@@ -561,7 +561,7 @@ var FocusTracker = class {
global.display.connect('grab-op-begin', (display, window, op) => {
if (window == this._currentWindow &&
(op == Meta.GrabOp.MOVING || op == Meta.GrabOp.KEYBOARD_MOVING))
- this.emit('reset');
+ this.emit('window-grabbed');
});
/* Valid for wayland clients */
@@ -1255,7 +1255,7 @@ var Keyboard = GObject.registerClass({
this._focusTracker = new FocusTracker();
this._connectSignal(this._focusTracker, 'position-changed',
this._onFocusPositionChanged.bind(this));
- this._connectSignal(this._focusTracker, 'reset', () => {
+ this._connectSignal(this._focusTracker, 'window-grabbed', () => {
this._setFocusWindow(null);
});
// Valid only for X11
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]