Remove debug prints

This commit is contained in:
Robbert van der Helm
2021-01-30 23:11:25 +01:00
parent b5dd806b2d
commit 27370ab54b
-13
View File
@@ -336,7 +336,6 @@ void Editor::handle_x11_events() const {
// check is sometimes necessary for using multiple editor windows
// within a single plugin group.
case XCB_CONFIGURE_NOTIFY:
std::cerr << "XCB_CONFIGURE_NOTIFY" << std::endl;
if (!use_xembed) {
fix_local_coordinates();
}
@@ -345,7 +344,6 @@ void Editor::handle_x11_events() const {
// most hosts will only show the window after the plugin has
// embedded itself into it.
case XCB_VISIBILITY_NOTIFY:
std::cerr << "XCB_VISIBILITY_NOTIFY" << std::endl;
if (use_xembed) {
do_xembed();
}
@@ -361,12 +359,6 @@ void Editor::handle_x11_events() const {
// `EnterNotify'.
case XCB_ENTER_NOTIFY:
case XCB_FOCUS_IN:
if (event_type == XCB_ENTER_NOTIFY) {
std::cerr << "XCB_ENTER_NOTIFY" << std::endl;
} else {
std::cerr << "XCB_FOCUS_IN" << std::endl;
}
if (!use_xembed) {
fix_local_coordinates();
}
@@ -386,7 +378,6 @@ void Editor::handle_x11_events() const {
// to mess with keyboard focus when hovering over the window while
// for instance a dialog is open.
case XCB_LEAVE_NOTIFY: {
std::cerr << "XCB_LEAVE_NOTIFY" << std::endl;
const auto event =
reinterpret_cast<xcb_leave_notify_event_t*>(generic_event);
@@ -404,10 +395,6 @@ void Editor::handle_x11_events() const {
set_input_focus(false);
}
} break;
default: {
std::cerr << "X11 event " << event_type << std::endl;
break;
}
}
free(generic_event);