diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-02-22 11:48:26 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-02-22 11:49:17 -0500 |
commit | 3a08ac5e1faede83db0f7b5db43bb982f00d5a1d (patch) | |
tree | 3170cfb65ad27a138eeb53067cc1219646388427 /libs/gtkmm2ext/keyboard.cc | |
parent | 100e156727b3c2e67fdd4c4ff882faf038baa631 (diff) |
os x: an initial attempt at fixing loss of keyboard focus after cmd-w to close dialog
Diffstat (limited to 'libs/gtkmm2ext/keyboard.cc')
-rw-r--r-- | libs/gtkmm2ext/keyboard.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/gtkmm2ext/keyboard.cc b/libs/gtkmm2ext/keyboard.cc index d59fe014ce..c1a279cce6 100644 --- a/libs/gtkmm2ext/keyboard.cc +++ b/libs/gtkmm2ext/keyboard.cc @@ -432,6 +432,14 @@ Keyboard::close_current_dialog () if (current_window) { current_window->hide (); current_window = 0; +#ifdef __APPLE__ + /* Since Apple users has a basically unconfigurable window + manager, and since users there cannot use + focus-follows-mouse, we force focus back to some application + "main window" after closing a dialog via Primary-w. + */ + GrabFocus (); +#endif } } |