[Github-comments] [geany/geany] Nautilus / wayland integration: bring Geany to front when opening a new tab in existing instance (#1698)
Ari
notifications at xxxxx
Tue Nov 28 00:37:26 UTC 2017
A while ago, tilix (gtk3 terminal emulator) had the same problem and they got it fixed
https://github.com/gnunn1/tilix/issues/849
https://github.com/gnunn1/tilix/issues/932
> Was that commit supposed to fix it? Because tilix --focus-window --action=app-new-session still doesn't work. A new tab is opened, the window just isn't focused.
They talk about the same GTK bug in the discussion.
https://github.com/gnunn1/tilix/commit/84abb55043b5ad6273bb8fc74967b90ab24535e9?diff=split
The fix seems to be along the lines of what @b4n mentioned above. The code is in D but but idea seems to be the same
```
if (isWayland(window)) {
+ trace("Present Window for Wayland");
+ window.presentWithTime(Main.getCurrentEventTime);
} else {
+ trace("Present Window for X11");
window.present();
activateX11Window(window);
}
```
it did fix the problem - bug 932 above about window focus problems under Wayland was mine and was solved
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1698#issuecomment-347375316
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20171128/00a09859/attachment.html>
More information about the Github-comments
mailing list