mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 03:50:11 +02:00
Add active window to enter/leave/focus tracing
This commit is contained in:
@@ -556,7 +556,11 @@ void Editor::handle_x11_events() noexcept {
|
|||||||
return "DEBUG: "s +
|
return "DEBUG: "s +
|
||||||
(event_type == XCB_ENTER_NOTIFY ? "EnterNotify"
|
(event_type == XCB_ENTER_NOTIFY ? "EnterNotify"
|
||||||
: "FocusIn") +
|
: "FocusIn") +
|
||||||
" for window " + std::to_string(window);
|
" for window " + std::to_string(window) +
|
||||||
|
" (wine window " +
|
||||||
|
(is_wine_window_active() ? "active"
|
||||||
|
: "inactive") +
|
||||||
|
")";
|
||||||
});
|
});
|
||||||
|
|
||||||
if (window == parent_window ||
|
if (window == parent_window ||
|
||||||
@@ -589,7 +593,11 @@ void Editor::handle_x11_events() noexcept {
|
|||||||
generic_event.get());
|
generic_event.get());
|
||||||
logger.log_editor_trace([&]() {
|
logger.log_editor_trace([&]() {
|
||||||
return "DEBUG: LeaveNotify for window " +
|
return "DEBUG: LeaveNotify for window " +
|
||||||
std::to_string(event->child);
|
std::to_string(event->child) + " (wine window " +
|
||||||
|
(is_wine_window_active() ? "active"
|
||||||
|
: "inactive") +
|
||||||
|
", detail " + std::to_string(event->detail) +
|
||||||
|
")";
|
||||||
});
|
});
|
||||||
|
|
||||||
// This extra check for the `NonlinearVirtual` detail is
|
// This extra check for the `NonlinearVirtual` detail is
|
||||||
|
|||||||
Reference in New Issue
Block a user