Bug 4630 - openbox does not respect primary desktop
Status: RESOLVED INVALID
Alias: None
Product: Openbox
Classification: Unclassified
Component: general
Version: 3.4.11.1
Hardware: PC Linux
: P3 normal
Assignee: Dana Jansens
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2010-05-11 06:11 EDT by eusou15
Modified: 2010-10-16 17:40:11 EDT
0 users

See Also:


Attachments
rc.xml (25.18 KB, text/xml)
2010-05-11 06:11 EDT, eusou15
autostart.sh (466 bytes, text/plain)
2010-05-11 06:11 EDT, eusou15

Description eusou15 2010-05-11 06:11:18 EDT
Created attachment 2350 [details]
rc.xml

Hi, 

I have 4 desktops, 1,2,3,T. The latter has a terminal in the background. 

When I login into X, I want my primary desktop (the desktop which first appears in front of me) to be 1. However, it is always T.

I do not have any session manager running, nor I run GNOME/KDE/whatever, so its not their fault. Here is a snippet of my rc.xml:

  <desktops>
    <!-- this stuff is only used at startup, pagers allow you to change them
       during a session

       these are default values to use when other ones are not already set
       by other applications, or saved in your session

       use obconf if you want to change these without having to log out
       and back in -->
    <number>4</number>
    <firstdesk>1</firstdesk>
    <names>
      <name>1</name>
      <name>2</name>
      <name>3</name>
      <name>T</name>
    </names>

The full rc.xml and autostart.sh are attached.

Thanks,
Pedro
Comment 1 eusou15 2010-05-11 06:11:41 EDT
Created attachment 2351 [details]
autostart.sh
Comment 2 Dana Jansens 2010-10-16 17:40:11 EDT
Set focus=no for the terminal.

    <application name="gnome-terminal" role="DesktopBackground"> 
      <decor>yes</decor> 
      <focus>yes</focus> 

focus=yes means openbox will move to that desktop and focus it when it appears.  and it is run in your autostart script.