Mark Bloch | 3 Sep 2010 14:22
Picon

I have a problem with focus not given to new lunched windows.

Hi,

I have a problem with my openbox configuration.
I have these options in my rc.xml file:
<focusNew>yes</focusNew>

and I have this keybind:
<keybind key="C-l">
      <keybind key="f">
        <action name="Execute">
          <command>firefox-bin</command>
        </action>
      </keybind>
</keybind>

under <applications> I have:
<focus>yes</focus>

and this:
<application name="firefox*"><desktop>1</desktop><raise>yes</raise></application>

.

Everything works fine, when I press the keybind combo, firefox is lunched on desktop #1, the problem is, it doesn't get focus!
I have to switch manually to desktop #1.

I want it to get focus when it's lunched, is there something I'm missing?

Thanks for the help,
                             Mark Bloch.
_______________________________________________
openbox mailing list
openbox@...
http://icculus.org/mailman/listinfo/openbox
Dana Jansens | 3 Sep 2010 22:21

Re: I have a problem with focus not given to new lunched windows.

On Fri, Sep 3, 2010 at 5:22 AM, Mark Bloch <mark.bl <at> gmail.com> wrote:
> Hi,
>
> I have a problem with my openbox configuration.
> I have these options in my rc.xml file:
> <focusNew>yes</focusNew>
>
> and I have this keybind:
> <keybind key="C-l">
>       <keybind key="f">
>         <action name="Execute">
>           <command>firefox-bin</command>
>         </action>
>       </keybind>
> </keybind>
>
> under <applications> I have:
> <focus>yes</focus>
>
> and this:
> <application
> name="firefox*"><desktop>1</desktop><raise>yes</raise></application>
>
> .
>
> Everything works fine, when I press the keybind combo, firefox is lunched on
> desktop #1, the problem is, it doesn't get focus!
> I have to switch manually to desktop #1.
>
> I want it to get focus when it's lunched, is there something I'm missing?

This was brought up in the past on here, or on IRC.  The <focus> flag
will cause openbox to move to the application's desktop in our git
version.  In 3.4.x it doesn't do this.

- Dana

> Thanks for the help,
>                              Mark Bloch.
>
> _______________________________________________
> openbox mailing list
> openbox <at> icculus.org
> http://icculus.org/mailman/listinfo/openbox
>
>
_______________________________________________
openbox mailing list
openbox <at> icculus.org
http://icculus.org/mailman/listinfo/openbox
Mark Bloch | 3 Sep 2010 23:41
Picon

Re: I have a problem with focus not given to new lunched windows.

Hi,

Thx for the tip, I've gone ahead and installed openbox from the git repo.
It seems to work but not very reliably, in fact it works only with one program ( lilyterm , and even with that, not always ) but not with : mousepad, firefox, geany or chrome .

is there any log files or anything I can look into in order to find out why it's not working?

- Mark .

On Fri, Sep 3, 2010 at 11:21 PM, Dana Jansens <dana-zZTRtpPJXhleoWH0uzbU5w@public.gmane.org> wrote:
On Fri, Sep 3, 2010 at 5:22 AM, Mark Bloch <mark.bl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> Hi,
>
> I have a problem with my openbox configuration.
> I have these options in my rc.xml file:
> <focusNew>yes</focusNew>
>
> and I have this keybind:
> <keybind key="C-l">
>       <keybind key="f">
>         <action name="Execute">
>           <command>firefox-bin</command>
>         </action>
>       </keybind>
> </keybind>
>
> under <applications> I have:
> <focus>yes</focus>
>
> and this:
> <application
> name="firefox*"><desktop>1</desktop><raise>yes</raise></application>
>
> .
>
> Everything works fine, when I press the keybind combo, firefox is lunched on
> desktop #1, the problem is, it doesn't get focus!
> I have to switch manually to desktop #1.
>
> I want it to get focus when it's lunched, is there something I'm missing?

This was brought up in the past on here, or on IRC.  The <focus> flag
will cause openbox to move to the application's desktop in our git
version.  In 3.4.x it doesn't do this.


- Dana

> Thanks for the help,
>                              Mark Bloch.
>
> _______________________________________________
> openbox mailing list
> openbox-y8u1feBGtzxAfugRpC6u6w@public.gmane.org
_______________________________________________
openbox mailing list
openbox-y8u1feBGtzxAfugRpC6u6w@public.gmane.org

_______________________________________________
openbox mailing list
openbox@...
http://icculus.org/mailman/listinfo/openbox
Mark Bloch | 3 Sep 2010 23:55
Picon

Re: I have a problem with focus not given to new lunched windows.

I just would like to add that is seems that a new window is given focus only if I'm not inside an application.

for example: if I'm on desktop 1 ,no application running on that desktop, and try to open an application on desktop 3, it gives focus to the new application.

if I'm on desktop 1 inside firefox ( for example ) and try to open an application on desktop 3 it doesn't give that application focus.

is that a feature or a bug ? if a feature can I change it ?

- Mark.

On Sat, Sep 4, 2010 at 12:41 AM, Mark Bloch <mark.bl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Hi,

Thx for the tip, I've gone ahead and installed openbox from the git repo.
It seems to work but not very reliably, in fact it works only with one program ( lilyterm , and even with that, not always ) but not with : mousepad, firefox, geany or chrome .

is there any log files or anything I can look into in order to find out why it's not working?

- Mark .

On Fri, Sep 3, 2010 at 11:21 PM, Dana Jansens <dana-zZTRtpPJXhleoWH0uzbU5w@public.gmane.org> wrote:
On Fri, Sep 3, 2010 at 5:22 AM, Mark Bloch <mark.bl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> Hi,
>
> I have a problem with my openbox configuration.
> I have these options in my rc.xml file:
> <focusNew>yes</focusNew>
>
> and I have this keybind:
> <keybind key="C-l">
>       <keybind key="f">
>         <action name="Execute">
>           <command>firefox-bin</command>
>         </action>
>       </keybind>
> </keybind>
>
> under <applications> I have:
> <focus>yes</focus>
>
> and this:
> <application
> name="firefox*"><desktop>1</desktop><raise>yes</raise></application>
>
> .
>
> Everything works fine, when I press the keybind combo, firefox is lunched on
> desktop #1, the problem is, it doesn't get focus!
> I have to switch manually to desktop #1.
>
> I want it to get focus when it's lunched, is there something I'm missing?

This was brought up in the past on here, or on IRC.  The <focus> flag
will cause openbox to move to the application's desktop in our git
version.  In 3.4.x it doesn't do this.


- Dana

> Thanks for the help,
>                              Mark Bloch.
>
> _______________________________________________
> openbox mailing list
> openbox <at> icculus.org
_______________________________________________
openbox mailing list
openbox-y8u1feBGtzzF2uMehF1BdA@public.gmane.orgg


_______________________________________________
openbox mailing list
openbox@...
http://icculus.org/mailman/listinfo/openbox
Dana Jansens | 4 Sep 2010 00:10

Re: I have a problem with focus not given to new lunched windows.

On Fri, Sep 3, 2010 at 2:55 PM, Mark Bloch <mark.bl <at> gmail.com> wrote:
> I just would like to add that is seems that a new window is given focus only
> if I'm not inside an application.
>
> for example: if I'm on desktop 1 ,no application running on that desktop,
> and try to open an application on desktop 3, it gives focus to the new
> application.
>
> if I'm on desktop 1 inside firefox ( for example ) and try to open an
> application on desktop 3 it doesn't give that application focus.
>
> is that a feature or a bug ? if a feature can I change it ?

probably a bug.

> On Sat, Sep 4, 2010 at 12:41 AM, Mark Bloch <mark.bl <at> gmail.com> wrote:
>>
>> Hi,
>>
>> Thx for the tip, I've gone ahead and installed openbox from the git repo.
>> It seems to work but not very reliably, in fact it works only with one
>> program ( lilyterm , and even with that, not always ) but not with :
>> mousepad, firefox, geany or chrome .
>>
>> is there any log files or anything I can look into in order to find out
>> why it's not working?

run openbox --debug and look at its stdout, or in ~/.cache/openbox.log

>> - Mark .
>>
>> On Fri, Sep 3, 2010 at 11:21 PM, Dana Jansens <dana <at> orodu.net> wrote:
>>>
>>> On Fri, Sep 3, 2010 at 5:22 AM, Mark Bloch <mark.bl <at> gmail.com> wrote:
>>> > Hi,
>>> >
>>> > I have a problem with my openbox configuration.
>>> > I have these options in my rc.xml file:
>>> > <focusNew>yes</focusNew>
>>> >
>>> > and I have this keybind:
>>> > <keybind key="C-l">
>>> >       <keybind key="f">
>>> >         <action name="Execute">
>>> >           <command>firefox-bin</command>
>>> >         </action>
>>> >       </keybind>
>>> > </keybind>
>>> >
>>> > under <applications> I have:
>>> > <focus>yes</focus>
>>> >
>>> > and this:
>>> > <application
>>> > name="firefox*"><desktop>1</desktop><raise>yes</raise></application>
>>> >
>>> > .
>>> >
>>> > Everything works fine, when I press the keybind combo, firefox is
>>> > lunched on
>>> > desktop #1, the problem is, it doesn't get focus!
>>> > I have to switch manually to desktop #1.
>>> >
>>> > I want it to get focus when it's lunched, is there something I'm
>>> > missing?
>>>
>>> This was brought up in the past on here, or on IRC.  The <focus> flag
>>> will cause openbox to move to the application's desktop in our git
>>> version.  In 3.4.x it doesn't do this.
>>>
>>>
>>> - Dana
>>>
>>> > Thanks for the help,
>>> >                              Mark Bloch.
>>> >
>>> > _______________________________________________
>>> > openbox mailing list
>>> > openbox <at> icculus.org
>>> > http://icculus.org/mailman/listinfo/openbox
>>> >
>>> >
>>> _______________________________________________
>>> openbox mailing list
>>> openbox <at> icculus.org
>>> http://icculus.org/mailman/listinfo/openbox
>>
>
>
> _______________________________________________
> openbox mailing list
> openbox <at> icculus.org
> http://icculus.org/mailman/listinfo/openbox
>
>
_______________________________________________
openbox mailing list
openbox <at> icculus.org
http://icculus.org/mailman/listinfo/openbox
Mark Bloch | 4 Sep 2010 03:03
Picon

Re: I have a problem with focus not given to new lunched windows.

Well according to the debug info, it's a feature :

Openbox-Debug: (FOCUS) focus_set_client 0x400003
Openbox-Debug: (FOCUS) ignoring enters from 2374 until 2374
Openbox-Debug: (FOCUS) EnterNotify mode 0 detail 4 serial 2374 on 400003, focusing window
Openbox-Debug: (FOCUS) ignoring enters from 2973 until 2974
Openbox-Debug: (FOCUS) Going to try activate new window? yes
Openbox-Debug: (FOCUS) Want to focus window 0xa00003 at time 688833456 launched at 0 (last user interaction time 688832174)
Openbox-Debug: (FOCUS) Not focusing the window because it is on another desktop and no relatives are focused
Openbox-Debug: (FOCUS) Focus stealing prevention activated for (Untitled) at time 688833456 (last user interaction time 688832174)
Openbox-Debug: (FOCUS) ignoring enters from 3101 until 3100
Openbox-Debug: (FOCUS) Frame for 0xa00003 has focus: 1


Looking ( briefly ) at the code,the code is at client.c ( lines 780 - 792 ) .
I can't find any nice way around this ( I can always delete it and recompile ) .

Any thoughts ?

-Mark.

On Sat, Sep 4, 2010 at 1:10 AM, Dana Jansens <dana-zZTRtpPJXhleoWH0uzbU5w@public.gmane.org> wrote:
On Fri, Sep 3, 2010 at 2:55 PM, Mark Bloch <mark.bl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> I just would like to add that is seems that a new window is given focus only
> if I'm not inside an application.
>
> for example: if I'm on desktop 1 ,no application running on that desktop,
> and try to open an application on desktop 3, it gives focus to the new
> application.
>
> if I'm on desktop 1 inside firefox ( for example ) and try to open an
> application on desktop 3 it doesn't give that application focus.
>
> is that a feature or a bug ? if a feature can I change it ?

probably a bug.


> On Sat, Sep 4, 2010 at 12:41 AM, Mark Bloch <mark.bl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>>
>> Hi,
>>
>> Thx for the tip, I've gone ahead and installed openbox from the git repo.
>> It seems to work but not very reliably, in fact it works only with one
>> program ( lilyterm , and even with that, not always ) but not with :
>> mousepad, firefox, geany or chrome .
>>
>> is there any log files or anything I can look into in order to find out
>> why it's not working?

run openbox --debug and look at its stdout, or in ~/.cache/openbox.log


>> - Mark .
>>
>> On Fri, Sep 3, 2010 at 11:21 PM, Dana Jansens <dana-zZTRtpPJXhleoWH0uzbU5w@public.gmane.org> wrote:
>>>
>>> On Fri, Sep 3, 2010 at 5:22 AM, Mark Bloch <mark.bl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>>> > Hi,
>>> >
>>> > I have a problem with my openbox configuration.
>>> > I have these options in my rc.xml file:
>>> > <focusNew>yes</focusNew>
>>> >
>>> > and I have this keybind:
>>> > <keybind key="C-l">
>>> >       <keybind key="f">
>>> >         <action name="Execute">
>>> >           <command>firefox-bin</command>
>>> >         </action>
>>> >       </keybind>
>>> > </keybind>
>>> >
>>> > under <applications> I have:
>>> > <focus>yes</focus>
>>> >
>>> > and this:
>>> > <application
>>> > name="firefox*"><desktop>1</desktop><raise>yes</raise></application>
>>> >
>>> > .
>>> >
>>> > Everything works fine, when I press the keybind combo, firefox is
>>> > lunched on
>>> > desktop #1, the problem is, it doesn't get focus!
>>> > I have to switch manually to desktop #1.
>>> >
>>> > I want it to get focus when it's lunched, is there something I'm
>>> > missing?
>>>
>>> This was brought up in the past on here, or on IRC.  The <focus> flag
>>> will cause openbox to move to the application's desktop in our git
>>> version.  In 3.4.x it doesn't do this.
>>>
>>>
>>> - Dana
>>>
>>> > Thanks for the help,
>>> >                              Mark Bloch.
>>> >
>>> > _______________________________________________
>>> > openbox mailing list
>>> > openbox-y8u1feBGtzzF2uMehF1BdA@public.gmane.orgg
>>> > http://icculus.org/mailman/listinfo/openbox
>>> >
>>> >
>>> _______________________________________________
>>> openbox mailing list
>>> openbox-y8u1feBGtzxAfugRpC6u6w@public.gmane.org
>>> http://icculus.org/mailman/listinfo/openbox
>>
>
>
> _______________________________________________
> openbox mailing list
> openbox-y8u1feBGtzxAfugRpC6u6w@public.gmane.org
> http://icculus.org/mailman/listinfo/openbox
>
>
_______________________________________________
openbox mailing list
openbox-y8u1feBGtzxAfugRpC6u6w@public.gmane.org
http://icculus.org/mailman/listinfo/openbox

_______________________________________________
openbox mailing list
openbox@...
http://icculus.org/mailman/listinfo/openbox
Dana Jansens | 4 Sep 2010 08:49

Re: I have a problem with focus not given to new lunched windows.

On Fri, Sep 3, 2010 at 6:03 PM, Mark Bloch <mark.bl <at> gmail.com> wrote:
> Well according to the debug info, it's a feature :

Just cuz it sounds like it knows what it's doing doesn't mean it's a feature..

> Openbox-Debug: (FOCUS) focus_set_client 0x400003
> Openbox-Debug: (FOCUS) ignoring enters from 2374 until 2374
> Openbox-Debug: (FOCUS) EnterNotify mode 0 detail 4 serial 2374 on 400003,
> focusing window
> Openbox-Debug: (FOCUS) ignoring enters from 2973 until 2974
> Openbox-Debug: (FOCUS) Going to try activate new window? yes
> Openbox-Debug: (FOCUS) Want to focus window 0xa00003 at time 688833456
> launched at 0 (last user interaction time 688832174)
> Openbox-Debug: (FOCUS) Not focusing the window because it is on another
> desktop and no relatives are focused
> Openbox-Debug: (FOCUS) Focus stealing prevention activated for (Untitled) at
> time 688833456 (last user interaction time 688832174)
> Openbox-Debug: (FOCUS) ignoring enters from 3101 until 3100
> Openbox-Debug: (FOCUS) Frame for 0xa00003 has focus: 1
>
>
> Looking ( briefly ) at the code,the code is at client.c ( lines 780 - 792 )
> .
> I can't find any nice way around this ( I can always delete it and recompile
> ) .
>
> Any thoughts ?

You should file a bug report in the bugzilla, cuz if i understand your
use case directly, I want it to be doing what you want it to be doing,
which means it's a bug :)

- Dana

> -Mark.
>
> On Sat, Sep 4, 2010 at 1:10 AM, Dana Jansens <dana <at> orodu.net> wrote:
>>
>> On Fri, Sep 3, 2010 at 2:55 PM, Mark Bloch <mark.bl <at> gmail.com> wrote:
>> > I just would like to add that is seems that a new window is given focus
>> > only
>> > if I'm not inside an application.
>> >
>> > for example: if I'm on desktop 1 ,no application running on that
>> > desktop,
>> > and try to open an application on desktop 3, it gives focus to the new
>> > application.
>> >
>> > if I'm on desktop 1 inside firefox ( for example ) and try to open an
>> > application on desktop 3 it doesn't give that application focus.
>> >
>> > is that a feature or a bug ? if a feature can I change it ?
>>
>> probably a bug.
>>
>>
>> > On Sat, Sep 4, 2010 at 12:41 AM, Mark Bloch <mark.bl <at> gmail.com> wrote:
>> >>
>> >> Hi,
>> >>
>> >> Thx for the tip, I've gone ahead and installed openbox from the git
>> >> repo.
>> >> It seems to work but not very reliably, in fact it works only with one
>> >> program ( lilyterm , and even with that, not always ) but not with :
>> >> mousepad, firefox, geany or chrome .
>> >>
>> >> is there any log files or anything I can look into in order to find out
>> >> why it's not working?
>>
>> run openbox --debug and look at its stdout, or in ~/.cache/openbox.log
>>
>>
>> >> - Mark .
>> >>
>> >> On Fri, Sep 3, 2010 at 11:21 PM, Dana Jansens <dana <at> orodu.net> wrote:
>> >>>
>> >>> On Fri, Sep 3, 2010 at 5:22 AM, Mark Bloch <mark.bl <at> gmail.com> wrote:
>> >>> > Hi,
>> >>> >
>> >>> > I have a problem with my openbox configuration.
>> >>> > I have these options in my rc.xml file:
>> >>> > <focusNew>yes</focusNew>
>> >>> >
>> >>> > and I have this keybind:
>> >>> > <keybind key="C-l">
>> >>> >       <keybind key="f">
>> >>> >         <action name="Execute">
>> >>> >           <command>firefox-bin</command>
>> >>> >         </action>
>> >>> >       </keybind>
>> >>> > </keybind>
>> >>> >
>> >>> > under <applications> I have:
>> >>> > <focus>yes</focus>
>> >>> >
>> >>> > and this:
>> >>> > <application
>> >>> > name="firefox*"><desktop>1</desktop><raise>yes</raise></application>
>> >>> >
>> >>> > .
>> >>> >
>> >>> > Everything works fine, when I press the keybind combo, firefox is
>> >>> > lunched on
>> >>> > desktop #1, the problem is, it doesn't get focus!
>> >>> > I have to switch manually to desktop #1.
>> >>> >
>> >>> > I want it to get focus when it's lunched, is there something I'm
>> >>> > missing?
>> >>>
>> >>> This was brought up in the past on here, or on IRC.  The <focus> flag
>> >>> will cause openbox to move to the application's desktop in our git
>> >>> version.  In 3.4.x it doesn't do this.
>> >>>
>> >>>
>> >>> - Dana
>> >>>
>> >>> > Thanks for the help,
>> >>> >                              Mark Bloch.
>> >>> >
>> >>> > _______________________________________________
>> >>> > openbox mailing list
>> >>> > openbox <at> icculus.org
>> >>> > http://icculus.org/mailman/listinfo/openbox
>> >>> >
>> >>> >
>> >>> _______________________________________________
>> >>> openbox mailing list
>> >>> openbox <at> icculus.org
>> >>> http://icculus.org/mailman/listinfo/openbox
>> >>
>> >
>> >
>> > _______________________________________________
>> > openbox mailing list
>> > openbox <at> icculus.org
>> > http://icculus.org/mailman/listinfo/openbox
>> >
>> >
>> _______________________________________________
>> openbox mailing list
>> openbox <at> icculus.org
>> http://icculus.org/mailman/listinfo/openbox
>
>
> _______________________________________________
> openbox mailing list
> openbox <at> icculus.org
> http://icculus.org/mailman/listinfo/openbox
>
>
_______________________________________________
openbox mailing list
openbox <at> icculus.org
http://icculus.org/mailman/listinfo/openbox
Mark Bloch | 4 Sep 2010 10:06
Picon

Re: I have a problem with focus not given to new lunched windows.

Done : http://bugzilla.icculus.org/show_bug.cgi?id=4752

Hope it helps.

- mark.

On Sat, Sep 4, 2010 at 9:49 AM, Dana Jansens <dana-zZTRtpPJXhleoWH0uzbU5w@public.gmane.org> wrote:
On Fri, Sep 3, 2010 at 6:03 PM, Mark Bloch <mark.bl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> Well according to the debug info, it's a feature :

Just cuz it sounds like it knows what it's doing doesn't mean it's a feature..

> Openbox-Debug: (FOCUS) focus_set_client 0x400003
> Openbox-Debug: (FOCUS) ignoring enters from 2374 until 2374
> Openbox-Debug: (FOCUS) EnterNotify mode 0 detail 4 serial 2374 on 400003,
> focusing window
> Openbox-Debug: (FOCUS) ignoring enters from 2973 until 2974
> Openbox-Debug: (FOCUS) Going to try activate new window? yes
> Openbox-Debug: (FOCUS) Want to focus window 0xa00003 at time 688833456
> launched at 0 (last user interaction time 688832174)
> Openbox-Debug: (FOCUS) Not focusing the window because it is on another
> desktop and no relatives are focused
> Openbox-Debug: (FOCUS) Focus stealing prevention activated for (Untitled) at
> time 688833456 (last user interaction time 688832174)
> Openbox-Debug: (FOCUS) ignoring enters from 3101 until 3100
> Openbox-Debug: (FOCUS) Frame for 0xa00003 has focus: 1
>
>
> Looking ( briefly ) at the code,the code is at client.c ( lines 780 - 792 )
> .
> I can't find any nice way around this ( I can always delete it and recompile
> ) .
>
> Any thoughts ?

You should file a bug report in the bugzilla, cuz if i understand your
use case directly, I want it to be doing what you want it to be doing,
which means it's a bug :)

- Dana

> -Mark.
>
> On Sat, Sep 4, 2010 at 1:10 AM, Dana Jansens <dana-zZTRtpPJXhleoWH0uzbU5w@public.gmane.org> wrote:
>>
>> On Fri, Sep 3, 2010 at 2:55 PM, Mark Bloch <mark.bl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>> > I just would like to add that is seems that a new window is given focus
>> > only
>> > if I'm not inside an application.
>> >
>> > for example: if I'm on desktop 1 ,no application running on that
>> > desktop,
>> > and try to open an application on desktop 3, it gives focus to the new
>> > application.
>> >
>> > if I'm on desktop 1 inside firefox ( for example ) and try to open an
>> > application on desktop 3 it doesn't give that application focus.
>> >
>> > is that a feature or a bug ? if a feature can I change it ?
>>
>> probably a bug.
>>
>>
>> > On Sat, Sep 4, 2010 at 12:41 AM, Mark Bloch <mark.bl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>> >>
>> >> Hi,
>> >>
>> >> Thx for the tip, I've gone ahead and installed openbox from the git
>> >> repo.
>> >> It seems to work but not very reliably, in fact it works only with one
>> >> program ( lilyterm , and even with that, not always ) but not with :
>> >> mousepad, firefox, geany or chrome .
>> >>
>> >> is there any log files or anything I can look into in order to find out
>> >> why it's not working?
>>
>> run openbox --debug and look at its stdout, or in ~/.cache/openbox.log
>>
>>
>> >> - Mark .
>> >>
>> >> On Fri, Sep 3, 2010 at 11:21 PM, Dana Jansens <dana-zZTRtpPJXhleoWH0uzbU5w@public.gmane.org> wrote:
>> >>>
>> >>> On Fri, Sep 3, 2010 at 5:22 AM, Mark Bloch <mark.bl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>> >>> > Hi,
>> >>> >
>> >>> > I have a problem with my openbox configuration.
>> >>> > I have these options in my rc.xml file:
>> >>> > <focusNew>yes</focusNew>
>> >>> >
>> >>> > and I have this keybind:
>> >>> > <keybind key="C-l">
>> >>> >       <keybind key="f">
>> >>> >         <action name="Execute">
>> >>> >           <command>firefox-bin</command>
>> >>> >         </action>
>> >>> >       </keybind>
>> >>> > </keybind>
>> >>> >
>> >>> > under <applications> I have:
>> >>> > <focus>yes</focus>
>> >>> >
>> >>> > and this:
>> >>> > <application
>> >>> > name="firefox*"><desktop>1</desktop><raise>yes</raise></application>
>> >>> >
>> >>> > .
>> >>> >
>> >>> > Everything works fine, when I press the keybind combo, firefox is
>> >>> > lunched on
>> >>> > desktop #1, the problem is, it doesn't get focus!
>> >>> > I have to switch manually to desktop #1.
>> >>> >
>> >>> > I want it to get focus when it's lunched, is there something I'm
>> >>> > missing?
>> >>>
>> >>> This was brought up in the past on here, or on IRC.  The <focus> flag
>> >>> will cause openbox to move to the application's desktop in our git
>> >>> version.  In 3.4.x it doesn't do this.
>> >>>
>> >>>
>> >>> - Dana
>> >>>
>> >>> > Thanks for the help,
>> >>> >                              Mark Bloch.
>> >>> >
>> >>> > _______________________________________________
>> >>> > openbox mailing list
>> >>> > openbox <at> icculus.org
>> >>> > http://icculus.org/mailman/listinfo/openbox
>> >>> >
>> >>> >
>> >>> _______________________________________________
>> >>> openbox mailing list
>> >>> openbox <at> icculus.org
>> >>> http://icculus.org/mailman/listinfo/openbox
>> >>
>> >
>> >
>> > _______________________________________________
>> > openbox mailing list
>> > openbox-y8u1feBGtzxAfugRpC6u6w@public.gmane.org
>> > http://icculus.org/mailman/listinfo/openbox
>> >
>> >
>> _______________________________________________
>> openbox mailing list
>> openbox-y8u1feBGtzxAfugRpC6u6w@public.gmane.org
>> http://icculus.org/mailman/listinfo/openbox
>
>
> _______________________________________________
> openbox mailing list
> openbox-y8u1feBGtzxAfugRpC6u6w@public.gmane.org
> http://icculus.org/mailman/listinfo/openbox
>
>
_______________________________________________
openbox mailing list
openbox-y8u1feBGtzxAfugRpC6u6w@public.gmane.org
http://icculus.org/mailman/listinfo/openbox

_______________________________________________
openbox mailing list
openbox@...
http://icculus.org/mailman/listinfo/openbox
Dana Jansens | 4 Sep 2010 17:14

Re: I have a problem with focus not given to new lunched windows.

On Sat, Sep 4, 2010 at 1:06 AM, Mark Bloch <mark.bl <at> gmail.com> wrote:
> Done : http://bugzilla.icculus.org/show_bug.cgi?id=4752
>
> Hope it helps.

Great, thanks!

> - mark.
>
> On Sat, Sep 4, 2010 at 9:49 AM, Dana Jansens <dana <at> orodu.net> wrote:
>>
>> On Fri, Sep 3, 2010 at 6:03 PM, Mark Bloch <mark.bl <at> gmail.com> wrote:
>> > Well according to the debug info, it's a feature :
>>
>> Just cuz it sounds like it knows what it's doing doesn't mean it's a
>> feature..
>>
>> > Openbox-Debug: (FOCUS) focus_set_client 0x400003
>> > Openbox-Debug: (FOCUS) ignoring enters from 2374 until 2374
>> > Openbox-Debug: (FOCUS) EnterNotify mode 0 detail 4 serial 2374 on
>> > 400003,
>> > focusing window
>> > Openbox-Debug: (FOCUS) ignoring enters from 2973 until 2974
>> > Openbox-Debug: (FOCUS) Going to try activate new window? yes
>> > Openbox-Debug: (FOCUS) Want to focus window 0xa00003 at time 688833456
>> > launched at 0 (last user interaction time 688832174)
>> > Openbox-Debug: (FOCUS) Not focusing the window because it is on another
>> > desktop and no relatives are focused
>> > Openbox-Debug: (FOCUS) Focus stealing prevention activated for
>> > (Untitled) at
>> > time 688833456 (last user interaction time 688832174)
>> > Openbox-Debug: (FOCUS) ignoring enters from 3101 until 3100
>> > Openbox-Debug: (FOCUS) Frame for 0xa00003 has focus: 1
>> >
>> >
>> > Looking ( briefly ) at the code,the code is at client.c ( lines 780 -
>> > 792 )
>> > .
>> > I can't find any nice way around this ( I can always delete it and
>> > recompile
>> > ) .
>> >
>> > Any thoughts ?
>>
>> You should file a bug report in the bugzilla, cuz if i understand your
>> use case directly, I want it to be doing what you want it to be doing,
>> which means it's a bug :)
>>
>> - Dana
>>
>> > -Mark.
>> >
>> > On Sat, Sep 4, 2010 at 1:10 AM, Dana Jansens <dana <at> orodu.net> wrote:
>> >>
>> >> On Fri, Sep 3, 2010 at 2:55 PM, Mark Bloch <mark.bl <at> gmail.com> wrote:
>> >> > I just would like to add that is seems that a new window is given
>> >> > focus
>> >> > only
>> >> > if I'm not inside an application.
>> >> >
>> >> > for example: if I'm on desktop 1 ,no application running on that
>> >> > desktop,
>> >> > and try to open an application on desktop 3, it gives focus to the
>> >> > new
>> >> > application.
>> >> >
>> >> > if I'm on desktop 1 inside firefox ( for example ) and try to open an
>> >> > application on desktop 3 it doesn't give that application focus.
>> >> >
>> >> > is that a feature or a bug ? if a feature can I change it ?
>> >>
>> >> probably a bug.
>> >>
>> >>
>> >> > On Sat, Sep 4, 2010 at 12:41 AM, Mark Bloch <mark.bl <at> gmail.com>
>> >> > wrote:
>> >> >>
>> >> >> Hi,
>> >> >>
>> >> >> Thx for the tip, I've gone ahead and installed openbox from the git
>> >> >> repo.
>> >> >> It seems to work but not very reliably, in fact it works only with
>> >> >> one
>> >> >> program ( lilyterm , and even with that, not always ) but not with :
>> >> >> mousepad, firefox, geany or chrome .
>> >> >>
>> >> >> is there any log files or anything I can look into in order to find
>> >> >> out
>> >> >> why it's not working?
>> >>
>> >> run openbox --debug and look at its stdout, or in ~/.cache/openbox.log
>> >>
>> >>
>> >> >> - Mark .
>> >> >>
>> >> >> On Fri, Sep 3, 2010 at 11:21 PM, Dana Jansens <dana <at> orodu.net>
>> >> >> wrote:
>> >> >>>
>> >> >>> On Fri, Sep 3, 2010 at 5:22 AM, Mark Bloch <mark.bl <at> gmail.com>
>> >> >>> wrote:
>> >> >>> > Hi,
>> >> >>> >
>> >> >>> > I have a problem with my openbox configuration.
>> >> >>> > I have these options in my rc.xml file:
>> >> >>> > <focusNew>yes</focusNew>
>> >> >>> >
>> >> >>> > and I have this keybind:
>> >> >>> > <keybind key="C-l">
>> >> >>> >       <keybind key="f">
>> >> >>> >         <action name="Execute">
>> >> >>> >           <command>firefox-bin</command>
>> >> >>> >         </action>
>> >> >>> >       </keybind>
>> >> >>> > </keybind>
>> >> >>> >
>> >> >>> > under <applications> I have:
>> >> >>> > <focus>yes</focus>
>> >> >>> >
>> >> >>> > and this:
>> >> >>> > <application
>> >> >>> >
>> >> >>> > name="firefox*"><desktop>1</desktop><raise>yes</raise></application>
>> >> >>> >
>> >> >>> > .
>> >> >>> >
>> >> >>> > Everything works fine, when I press the keybind combo, firefox is
>> >> >>> > lunched on
>> >> >>> > desktop #1, the problem is, it doesn't get focus!
>> >> >>> > I have to switch manually to desktop #1.
>> >> >>> >
>> >> >>> > I want it to get focus when it's lunched, is there something I'm
>> >> >>> > missing?
>> >> >>>
>> >> >>> This was brought up in the past on here, or on IRC.  The <focus>
>> >> >>> flag
>> >> >>> will cause openbox to move to the application's desktop in our git
>> >> >>> version.  In 3.4.x it doesn't do this.
>> >> >>>
>> >> >>>
>> >> >>> - Dana
>> >> >>>
>> >> >>> > Thanks for the help,
>> >> >>> >                              Mark Bloch.
>> >> >>> >
>> >> >>> > _______________________________________________
>> >> >>> > openbox mailing list
>> >> >>> > openbox <at> icculus.org
>> >> >>> > http://icculus.org/mailman/listinfo/openbox
>> >> >>> >
>> >> >>> >
>> >> >>> _______________________________________________
>> >> >>> openbox mailing list
>> >> >>> openbox <at> icculus.org
>> >> >>> http://icculus.org/mailman/listinfo/openbox
>> >> >>
>> >> >
>> >> >
>> >> > _______________________________________________
>> >> > openbox mailing list
>> >> > openbox <at> icculus.org
>> >> > http://icculus.org/mailman/listinfo/openbox
>> >> >
>> >> >
>> >> _______________________________________________
>> >> openbox mailing list
>> >> openbox <at> icculus.org
>> >> http://icculus.org/mailman/listinfo/openbox
>> >
>> >
>> > _______________________________________________
>> > openbox mailing list
>> > openbox <at> icculus.org
>> > http://icculus.org/mailman/listinfo/openbox
>> >
>> >
>> _______________________________________________
>> openbox mailing list
>> openbox <at> icculus.org
>> http://icculus.org/mailman/listinfo/openbox
>
>
> _______________________________________________
> openbox mailing list
> openbox <at> icculus.org
> http://icculus.org/mailman/listinfo/openbox
>
>
_______________________________________________
openbox mailing list
openbox <at> icculus.org
http://icculus.org/mailman/listinfo/openbox
Simon Perry | 6 Sep 2010 07:47

Focus between X displays

Hi everyone,

I've recently moved to Openbox from plain old Metacity, and I'm loving
it so far.

After a lot of doc reading and Googling, I have been unable to determine
a way to change certain behaviour which I was used to in Metacity.

Consider this setup:

- 2 separate X displays (NVidia card but not using TwinView)
- Display 0 runs normal desktop stuff
- Display 1 runs a fullscreen RDP session to a Windows VM
- Sloppy mouse focus or focus-follows-mouse is not enabled

In Metacity, whenever I moved the mouse between displays, focus was
given to that display. Even if there wasn't a window on the display
that you moved to, it would always cause the other display to lose
focus.

Very nice behaviour. I did not need any "sloppy focus" or follow-mouse
setting enabled for this to work (I hate sloppy focus except for this
one case) -- I always knew which "screen" had focus based on where the
mouse was.

Anyway, in Openbox, display 1 is "unmanaged" (i.e. no Openbox running on
display :0.1). When I move the mouse from 0 to 1, the fullscreen app on
display 1 gets focus - no drama there.

When I move back to display 0, display 1 keeps focus and I have to click
somewhere on display 0 for display 1 to lose focus.

It appears the only way to consistently change focus when moving between
displays is to enable follow mouse for everything, and I can't see any
way of emulating Metacity's behaviour.

If anyone could let me know how to achieve Metacity-style behaviour for
this, if it's in fact possible, that'd be appreciated as I can't stand
sloppy mouse for everything. :)

Cheers.

--

-- 
Simon Perry (aka Pezz)

_______________________________________________
openbox mailing list
openbox@...
http://icculus.org/mailman/listinfo/openbox


Gmane