mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-06 19:40:10 +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 +
|
||||
(event_type == XCB_ENTER_NOTIFY ? "EnterNotify"
|
||||
: "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 ||
|
||||
@@ -589,7 +593,11 @@ void Editor::handle_x11_events() noexcept {
|
||||
generic_event.get());
|
||||
logger.log_editor_trace([&]() {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user