diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-06-07 18:29:03 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-06-07 18:29:03 -0400 |
commit | 73f3abedea6f6ec112f26fe810ad6a7ec56a1e2e (patch) | |
tree | d5a7c5ffd12b0ba759a3c278d753f5321979fbb6 /libs/gtkmm2ext/keyboard.cc | |
parent | 207fa93cf948cc2b9d92e50ef15707611a858d6a (diff) |
make it possible to disable VisibilityTracker's use of WM visibility
Diffstat (limited to 'libs/gtkmm2ext/keyboard.cc')
-rw-r--r-- | libs/gtkmm2ext/keyboard.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/gtkmm2ext/keyboard.cc b/libs/gtkmm2ext/keyboard.cc index 983edbd0cf..08b0393d49 100644 --- a/libs/gtkmm2ext/keyboard.cc +++ b/libs/gtkmm2ext/keyboard.cc @@ -477,6 +477,7 @@ Keyboard::leave_window (GdkEventCrossing *ev, Gtk::Window* /*win*/) current_window = 0; } } else { + DEBUG_TRACE (DEBUG::Keyboard, "LEAVE window without event\n"); current_window = 0; } @@ -498,7 +499,9 @@ Keyboard::focus_out_window (GdkEventFocus * ev, Gtk::Window* win) state.clear (); current_window = 0; } else { - current_window = 0; + if (win == current_window) { + current_window = 0; + } } DEBUG_TRACE (DEBUG::Keyboard, string_compose ("Foucusing out window, title = %1\n", win->get_title())); |