diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-08-23 15:18:18 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-08-23 15:18:18 +0100 |
| commit | 0755366cb15674da50162cf37848d94773fd36ac (patch) | |
| tree | 2844c0fe37759e890529552dbce6b6b540570f47 /src/input_handler.cc | |
| parent | a2e90c2c2570e432d4c71a15cdb2cacd1a7c0407 (diff) | |
Rework resize handling
Fixes #383
Diffstat (limited to 'src/input_handler.cc')
| -rw-r--r-- | src/input_handler.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/input_handler.cc b/src/input_handler.cc index 8ef17af9..4fd118b2 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -78,7 +78,7 @@ struct MouseHandler { case Key::Modifiers::MousePress: m_dragging = true; - m_anchor = context.window().buffer_coord(key.mouse_coord()); + m_anchor = context.window().buffer_coord(key.coord()); context.selections_write_only() = SelectionList{ buffer, m_anchor }; return true; @@ -86,7 +86,7 @@ struct MouseHandler if (not m_dragging) return true; m_dragging = false; - cursor = context.window().buffer_coord(key.mouse_coord()); + cursor = context.window().buffer_coord(key.coord()); context.selections_write_only() = SelectionList{ buffer, Selection{buffer.clamp(m_anchor), cursor} }; return true; @@ -94,7 +94,7 @@ struct MouseHandler case Key::Modifiers::MousePos: if (not m_dragging) return true; - cursor = context.window().buffer_coord(key.mouse_coord()); + cursor = context.window().buffer_coord(key.coord()); context.selections_write_only() = SelectionList{ buffer, Selection{buffer.clamp(m_anchor), cursor} }; return true; |
