Hi,
I usually have a copy of Geany running all the time with some often used files opened and just open new files with the one instance whenever I want to edit them.
Currently the instance of Geany that is already running does not get moved to the foreground on my KDE system when I try to open a new file for editing from some other application, e.g. file browser, commandline, browser, ...
I.e. I already have Geany running, when I type "geany /tmp/test.txt", the new file is opened in the Geany window, but Geany remains in the background and is not brought to the foreground. I rather would like to have the behavior like Firefox, where I get the browser window moved to the foreground whenever a new URL is opened from the commandline or some other application.
Is there a way to achieve this? Would it require code-changes? if yes, any hint where to go looking? Or should I go looking somewhere else (general issue of Gnome apps on KDE?) for a solution?
Geany is version 0.16 on Kubuntu Jaunty (upgraded to KDE 4.3.1)
Thanks.... Dominik.
2009/10/2 Dominik Stadler Dominik.Stadler@gmx.at:
Hi,
I usually have a copy of Geany running all the time with some often used files opened and just open new files with the one instance whenever I want to edit them.
Currently the instance of Geany that is already running does not get moved to the foreground on my KDE system when I try to open a new file for editing from some other application, e.g. file browser, commandline, browser, ...
I.e. I already have Geany running, when I type "geany /tmp/test.txt", the new file is opened in the Geany window, but Geany remains in the background and is not brought to the foreground. I rather would like to have the behavior like Firefox, where I get the browser window moved to the foreground whenever a new URL is opened from the commandline or some other application.
Is there a way to achieve this? Would it require code-changes? if yes, any hint where to go looking? Or should I go looking somewhere else (general issue of Gnome apps on KDE?) for a solution?
Well Geany calls the appropriate function to make the window visible (gtk_window_present) but this is just a *request* to the window manager. If its not being honoured you need to look if there is a setting in KDEs window manager that tells it to ignore the request. I don't use KDE so I can't suggest where to look.
Cheers Lex
Geany is version 0.16 on Kubuntu Jaunty (upgraded to KDE 4.3.1)
Thanks.... Dominik.
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 - sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser _______________________________________________ Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On Thursday 01 October 2009 07:45:09 pm Lex Trotman wrote:
2009/10/2 Dominik Stadler Dominik.Stadler@gmx.at:
I rather would like to have the behavior like Firefox, where I get the browser window moved to the foreground whenever a new URL is opened from the commandline or some other application.
Well Geany calls the appropriate function to make the window visible (gtk_window_present) but this is just a *request* to the window manager. If its not being honoured you need to look if there is a setting in KDEs window manager that tells it to ignore the request. I don't use KDE so I can't suggest where to look.
I think this is just the opposite of the problem I finally solved for myself on Debian / KDE 3.5 with kmail and konqueror. I think what you want to do is try experimenting by setting Focus Stealing Prevention for geany to Low (assuming it is currently set to a default setting of normal) (or lower than its current setting, if it is set to low already).
I recently did just the opposite for konqueror--I raised it from Normal to High so that konqueror would not come to the foreground when I clicked on a new link in kmail.
Rather than try to repeat the instructions here, go take a look at http://twiki.org/cgi-bin/view/Wikilearn/SetFocusStealingPreventionPerWindowK...
What you want to do is do what I did for konqueror for geany, only set it to a lower setting.
Hmm, that's a long URL--I should probably change the page name to make a shorter URL--it might get split in this email.
Let me know how you make out, and if you can add or fix something on that page feel free--it's a wiki, after all.
Randy Kramer
Randy Kramer wrote:
On Thursday 01 October 2009 07:45:09 pm Lex Trotman wrote: ... http://twiki.org/cgi-bin/view/Wikilearn/SetFocusStealingPreventionPerWindowK...
Funny, but the behaviour on my Gnome 2.26.1 with Geany 16 (for Geany I prefer to skip the "0." ;)) is exactly as described by Dominik. Any hints where to setup window props in Gnome?
Hmm, that's a long URL--I should probably change the page name to make a shorter URL--it might get split in this email.
embrace the url like http://some.long.url.
Greetz,
Christopher
2009/10/2 Christoph Siefer siefer@sym.net:
Randy Kramer wrote:
On Thursday 01 October 2009 07:45:09 pm Lex Trotman wrote: ...
http://twiki.org/cgi-bin/view/Wikilearn/SetFocusStealingPreventionPerWindowK...
Funny, but the behaviour on my Gnome 2.26.1 with Geany 16 (for Geany I prefer to skip the "0." ;)) is exactly as described by Dominik. Any hints where to setup window props in Gnome?
My Gnome does pop Geany to the front when I open another file in Geany. Looking in Gnome configuration I can't see any setting for why it works. But at least you know it can be done :-)
Cheers Lex
PS There is a metacity (the WM for Gnome) setting called raise on click that notes that if its off it will ignore raise requests from programs. You could check that this is set.
Hmm, that's a long URL--I should probably change the page name to make a shorter URL--it might get split in this email.
embrace the url like http://some.long.url.
Greetz,
Christopher
www.odalis.net: integrated KMS/CMS/DMS/Data-Warehouse
sym.net martin butz & christoph siefer gbr Hansaring 78 50670 koeln 049.(0)221.3762590 email: siefer@sym.net net: http://www.sym.net _______________________________________________ Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Lex Trotman wrote: ...
PS There is a metacity (the WM for Gnome) setting called raise on click that notes that if its off it will ignore raise requests from programs. You could check that this is set.
Can't see any preference for that in metacity. Thanks anyway, have to google it. google is going to eat us all.
cheers
Christopher
On Friday 02 October 2009 05:06:34 am Christoph Siefer wrote:
Randy Kramer wrote:
http://twiki.org/cgi-bin/view/Wikilearn/SetFocusStealingPreventionP erWindowKDE3dot5
Funny, but the behaviour on my Gnome 2.26.1 with Geany 16 (for Geany I prefer to skip the "0." ;)) is exactly as described by Dominik. Any hints where to setup window props in Gnome?
Christoph,
I don't use Gnome, but the first thing I'd try is googling for:
[Gnome "Focus Stealing Prevention"] (without the square brackets)
If you find a solution, please consider adding a note to that WikiLearn page listed previously (and below).
Hmm, that's a long URL--I should probably change the page name to make a shorter URL--it might get split in this email.
embrace the url like http://some.long.url.
Hmm, thanks--I'll have to remember that (at first I thought you were giving me some meta-physical type new age advice--like, I don't know--"embrace change", or "carpe diem", or something like that, but now I understand ;-)
The URL didn't break up for me, so I don't know if this helps anyone (maybe the URL isn't *too* long), but I'm trying your suggestion here just in hopes it does help. Ohh, wait, it did break up when I wrote this reply--maybe I will be able to tell. Anyway:
http://twiki.org/cgi-bin/view/Wikilearn/SetFocusStealingPreventionPerWindowKDE3dot5
Good luck, Randy Kramer
Hi all,
The solution provided in the URL below on twiki.org actually solves the problem for me as well. Setting the Focus Stealing Prevents to "None" for Geany specifically had exactly the desired effect, i.e. it now is brought to the foreground if I open some textfile in file explorer or on the commandline!
Thanks to Randy for suggesting this!
Dominik
-------- Original-Nachricht --------
Datum: Fri, 2 Oct 2009 08:39:35 -0400 Von: Randy Kramer rhkramer@gmail.com An: Geany general discussion list geany@uvena.de Betreff: Re: [Geany] [SPAM] Re: Geany not getting focus on kubuntu
On Friday 02 October 2009 05:06:34 am Christoph Siefer wrote:
Randy Kramer wrote:
http://twiki.org/cgi-bin/view/Wikilearn/SetFocusStealingPreventionP erWindowKDE3dot5
Funny, but the behaviour on my Gnome 2.26.1 with Geany 16 (for Geany I prefer to skip the "0." ;)) is exactly as described by Dominik. Any hints where to setup window props in Gnome?
Christoph,
I don't use Gnome, but the first thing I'd try is googling for:
[Gnome "Focus Stealing Prevention"] (without the square brackets)
If you find a solution, please consider adding a note to that WikiLearn page listed previously (and below).
Hmm, that's a long URL--I should probably change the page name to make a shorter URL--it might get split in this email.
embrace the url like http://some.long.url.
Hmm, thanks--I'll have to remember that (at first I thought you were giving me some meta-physical type new age advice--like, I don't know--"embrace change", or "carpe diem", or something like that, but now I understand ;-)
The URL didn't break up for me, so I don't know if this helps anyone (maybe the URL isn't *too* long), but I'm trying your suggestion here just in hopes it does help. Ohh, wait, it did break up when I wrote this reply--maybe I will be able to tell. Anyway:
http://twiki.org/cgi-bin/view/Wikilearn/SetFocusStealingPreventionPerWindowKDE3dot5
Good luck, Randy Kramer _______________________________________________ Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany