You are not logged in.

#21 2018-06-20 01:33:03

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,611

Re: [RESOLVED] window stacking: new window not focused

johnraff wrote:

About the focus issue, I added this bit of code below the focus fix code:

    <application name="bl-text-editor">
      <iconic>yes</iconic>
    </application>

And sure enough geany (if called as bl-text-editor) opens iconified, regardless, so it looks as if this fix/hack/workaround might be safe to apply:

    <application class="*">
      <focus>yes</focus>
    </application>

I was also thinking about if an application is set to start iconified or in the system tray from the application's preferences; would that setting override that.

Looks to be a good fix though; agree with hhh to add it.


You must unlearn what you have learned.
    -- yoda

Offline

#22 2018-06-20 03:18:13

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,552
Website

Re: [RESOLVED] window stacking: new window not focused

PackRat wrote:

I was also thinking about if an application is set to start iconified or in the system tray from the application's preferences; would that setting override that?

Good point. My guess:
pref>systray=OK
pref>iconify=dont_know

We can add a comment to the OB setting for people who'd rather have their app iconify as configured and put up with the occasional focus issues:

    <!-- Ensure new windows are always given focus.
    See: https://wiki.archlinux.org/index.php/openbox#Windows_load_behind_the_active_window
    Remove this entry if it conflicts with some app's configuration. -->
    <application class="*">
      <focus>yes</focus>
    </application>

Anyway, above code now committed, but no new package released yet.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#23 2018-06-21 04:00:13

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,552
Website

Re: [RESOLVED] window stacking: new window not focused

Referring to a different issue, now split to here: https://forums.bunsenlabs.org/viewtopic.php?id=4966

Thinking some more, this won't be as trivial as adding a single # should be, whichever way it's done. Since this is a new topic I should have forked off long ago from the window focus thing, I'll attempt to split off the posts which refer to the background transfer issue, and start a new topic, so this [RESOLVED] thread can be left in peace.

Last edited by johnraff (2018-06-21 05:01:29)


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

Board footer

Powered by FluxBB