Clarify local coordinate fix function name

This commit is contained in:
Robbert van der Helm
2020-05-27 13:50:52 +02:00
parent ab4d35886e
commit d65281d691
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -177,13 +177,13 @@ void Editor::handle_x11_events() {
// get dragged around the by the user. In most cases this is the // get dragged around the by the user. In most cases this is the
// same as `parent_window`. // same as `parent_window`.
case XCB_CONFIGURE_NOTIFY: case XCB_CONFIGURE_NOTIFY:
fix_window_coordinates(); fox_local_coordinates();
break; break;
// The coordinates should also be reset when the user clicks on the // The coordinates should also be reset when the user clicks on the
// window. This is sometimes necessary when opening multiple editors // window. This is sometimes necessary when opening multiple editors
// in a single plugin group. // in a single plugin group.
case XCB_FOCUS_IN: case XCB_FOCUS_IN:
fix_window_coordinates(); fox_local_coordinates();
// Explicitely request input focus when the user clicks on the // Explicitely request input focus when the user clicks on the
// window. This is needed for Bitwig Studio 3.2, as the parent // window. This is needed for Bitwig Studio 3.2, as the parent
@@ -202,7 +202,7 @@ void Editor::handle_x11_events() {
} }
} }
void Editor::fix_window_coordinates() { void Editor::fox_local_coordinates() {
// We're purposely not using XEmbed. This has the consequence that wine // We're purposely not using XEmbed. This has the consequence that wine
// still thinks that any X and Y coordinates are relative to the x11 window // still thinks that any X and Y coordinates are relative to the x11 window
// root instead of the parent window provided by the DAW, causing all sorts // root instead of the parent window provided by the DAW, causing all sorts
+1 -1
View File
@@ -118,7 +118,7 @@ class Editor {
* reparenting without using XEmbed. See the comment at the top of the * reparenting without using XEmbed. See the comment at the top of the
* implementation on why this is needed. * implementation on why this is needed.
*/ */
void fix_window_coordinates(); void fox_local_coordinates();
/** /**
* A pointer to the currently active window. Will be a null pointer if no * A pointer to the currently active window. Will be a null pointer if no