Results 1 to 10 of 10

Thread: Closed Program Retains Focus

  1. #1
    Join Date
    Oct 2010
    Location
    The United States
    Beans
    843
    Distro
    Ubuntu

    Closed Program Retains Focus

    Hi Guys,

    I'm running Ubuntu 12.04 and noticed this annoying behavior about a month ago.
    I was wondering if anyone knows what I can do to solve the problem.

    If, for example, I launch the terminal the name of the active program appears in the upper left-hand corner of the screen. In the case of the terminal it shows the name of a script I have that runs in the terminal. That is fine. This could be any program I am just using the terminal as an example.


    The terminal is the active program and the name Google Tasks List appears in the corner. Not a problem.

    The annoying thing is that if I close the terminal (I usually click the x in the corner of the terminal.)
    the terminal, in this case called Google Tasks List, remains active despite the terminal being closed.


    Here you can see my conky below where the terminal had been open.
    Yet, in the corner, Google Tasks List is still shown as active.


    The irritating thing is that I seem to have to click on the desktop to release the focus from the terminal (which has taken the name Google tasks list and is no longer running).

    Does anyone know what I need to do in order to have the focus either returned to the desktop or if there is more than one program open moved to the next program in line when I close an active program? That is, instead of keeping the closed program as the active program and being required to click the desktop.
    Thank you,
    GG -----------

  2. #2
    Join Date
    Oct 2010
    Location
    The United States
    Beans
    843
    Distro
    Ubuntu

    Re: Closed Program Retains Focus

    bump
    Thank you,
    GG -----------

  3. #3
    Join Date
    Mar 2014
    Beans
    Hidden!

    Re: Closed Program Retains Focus

    Are you running conky on the desktop? Edit...just reread your post and see you are.
    Had a similar problem when running conky and the solution was to give conky "no focus" using ccsm.....see pic.
    ccsm > window management > window rules
    Enable the plugin and add the following to the "No focus" box.
    Code:
    class=Conky
    Reload your conky....
    Code:
    killall -SIGUSR1 conky
    Attached Images Attached Images
    Last edited by grumblebum2; March 13th, 2014 at 01:58 AM.

  4. #4
    Join Date
    Oct 2010
    Location
    The United States
    Beans
    843
    Distro
    Ubuntu

    Re: Closed Program Retains Focus

    Quote Originally Posted by grumblebum2 View Post
    Are you running conky on the desktop? Edit...just reread your post and see you are.
    Had a similar problem when running conky and the solution was to give conky "no focus" using ccsm.....see pic.
    ccsm > window management > window rules
    Enable the plugin and add the following to the "No focus" box.
    Code:
    class=Conky
    Reload your conky....
    Code:
    killall -SIGUSR1 conky
    Thank you for the reply.
    I enabled the ccsm and set conky to no focus as you did in your screen shot.
    Do I need to add anything to the conkyrc?
    I wonder if that is really the problem though, because in my case I can close just about any program and it will still retain focus.

    For example, if I run the terminal and then click the x in the corner of the terminal the terminal window will close. Yet in the upper left-hand corner of my screen where the active program is listed I'll still see Terminal until I click on the desktop.

    We'll see though, I followed your suggestion. I've been wrong before about what I thought would or would not work.
    Thank you,
    GG -----------

  5. #5
    Join Date
    Oct 2010
    Location
    The United States
    Beans
    843
    Distro
    Ubuntu

    Re: Closed Program Retains Focus

    That doesn't seem to have helped actually.
    I restarted my computer and have not started Conky yet.

    When I launch the ccsm I get the screen shot below:


    If I close the ccsm I still show it as the active program.
    Thank you,
    GG -----------

  6. #6
    Join Date
    Mar 2014
    Beans
    Hidden!

    Re: Closed Program Retains Focus

    Been a while since I used 12.04...using 13.10 at the moment and see exactly what you describe when I run conky without the ccsm "no focus" setting.
    If I don't run conky problem doesn't exist.
    Also used to have problems with shortcut keys because the focus seemed to be in some state of limbo...the closed app wasn't focused but neither was the desktop.
    I usually use own_window_type normal in my conkyrc but you could try own_window_type override.
    Override windows ignore window manager hints, so if you are already using override try normal.
    Last edited by grumblebum2; March 13th, 2014 at 04:13 PM.

  7. #7
    Join Date
    Oct 2010
    Location
    The United States
    Beans
    843
    Distro
    Ubuntu

    Re: Closed Program Retains Focus

    OK I'll try playing with the window settings - they were set to own_window no actually
    Thank you,
    GG -----------

  8. #8
    Join Date
    Oct 2010
    Location
    The United States
    Beans
    843
    Distro
    Ubuntu

    Re: Closed Program Retains Focus

    I still have the same problem
    Thank you,
    GG -----------

  9. #9
    Join Date
    Mar 2014
    Beans
    Hidden!

    Re: Closed Program Retains Focus

    Quote Originally Posted by GrouchyGaijin View Post
    I still have the same problem
    Sorry about that. Can't be of much more help if you have the problem even when not running conky.
    Only other thing I would suggest would be to test a new user account to see if the issue exists there.

  10. #10
    Join Date
    Mar 2014
    Beans
    Hidden!

    Re: Closed Program Retains Focus

    See this thread and check your config to see if you have changed own_window_class .
    http://ubuntuforums.org/showthread.p...4#post12968394

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •