diff options
author | Jörg Frings-Fürst <jff@merkur> | 2014-07-23 11:40:08 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <jff@merkur> | 2014-07-23 11:40:08 +0200 |
commit | 6edfb34cb3eee958e392a433ae9ac4f240279d09 (patch) | |
tree | d33f9e9032809dba2ccb1b8c9ccc928507c38cf6 /src/utilities/key.vala | |
parent | 1f6f24308e96040962794c5a9ffd81597b5e072a (diff) |
Imported Upstream version 0.5.5upstream/0.5.5
Diffstat (limited to 'src/utilities/key.vala')
-rw-r--r-- | src/utilities/key.vala | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/utilities/key.vala b/src/utilities/key.vala index 5f27a1e..af6e86a 100644 --- a/src/utilities/key.vala +++ b/src/utilities/key.vala @@ -118,8 +118,8 @@ public class Key : GLib.Object { display.flush(); // press and release the actual key - X.Test.fake_key_event(this.display, this.key_code, true, 0); - X.Test.fake_key_event(this.display, this.key_code, false, 0); + X.Test.fake_key_event(display, this.key_code, true, 0); + X.Test.fake_key_event(display, this.key_code, false, 0); // release the pressed modifiers and re-press the keys hold down by the user press_modifiers(this.modifiers, false); @@ -145,16 +145,16 @@ public class Key : GLib.Object { private void press_modifiers(Gdk.ModifierType modifiers, bool down) { if ((modifiers & Gdk.ModifierType.CONTROL_MASK) > 0) - X.Test.fake_key_event(this.display, this.ctrl_code, down, 0); + X.Test.fake_key_event(display, ctrl_code, down, 0); if ((modifiers & Gdk.ModifierType.SHIFT_MASK) > 0) - X.Test.fake_key_event(this.display, this.shift_code, down, 0); + X.Test.fake_key_event(display, shift_code, down, 0); if ((modifiers & Gdk.ModifierType.MOD1_MASK) > 0) - X.Test.fake_key_event(this.display, this.alt_code, down, 0); + X.Test.fake_key_event(display, alt_code, down, 0); if ((modifiers & Gdk.ModifierType.SUPER_MASK) > 0) - X.Test.fake_key_event(this.display, this.super_code, down, 0); + X.Test.fake_key_event(display, super_code, down, 0); } } |