t-8ch / taterm

tiling aware terminal
6 stars 5 forks source link

New windows are only notified, not raised #2

Open madx opened 11 years ago

madx commented 11 years ago

I'm not sure if it's the right place to report this, but if I launch a new taterm window while I'm focused on another window, it gets placed behind the focused window and I've got a notification that the app is ready.

I'm using Gnome Shell, and I know you're using a tiling WM so you certainly aren't annoyed by this issue, but it's a real pain for me since I've got to either alt-tab or click the notification bubble to raise the window.

I'm pretty sure it has to do with the fact that it's using GtkApplication and only spawning new windows, not apps, and the behaviour of not showing the window is intended (i.e. not configurable) in Gnome.

I do not know if there is a way to force new windows to bypass this restriction, so I'm asking it to you :)

t-8ch commented 11 years ago

Does this help:

diff --git a/taterm.vala b/taterm.vala
index 853f544..4f1cddc 100644
--- a/taterm.vala
+++ b/taterm.vala
@@ -148,6 +148,7 @@ class Taterm : Gtk.Application

            add(term);
            show_all();
+           present();
        } // Window()
    } // class Window
madx commented 11 years ago

That's exactly what I've tried just now, but it does not seem to work, I'm investigating further