Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I am writing a Linux app which involves a functionality to detect active and inactive windows. For that is there a C/C++ code which could be used for detect ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2009
    Posts
    2

    Active and Inactive Windows


    Hi,

    I am writing a Linux app which involves a functionality to detect active and inactive windows. For that is there a C/C++ code which could be used for detect the active and inactive windows in Linux OS. I want a solution which could be used in any Linux distro, or, maybe, on the most widely used distributions atleast.

    Also, as far as I assume KDE and GNOME being different Window Managers should have different mechanisms/APIs to get the Active and Inactive windows status. So I do not want to use those APIs as user could work in any of these.
    Please correct me if I am wrong.

    I really appreciate any help.

    Thanks,
    Arun

  2. #2
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    Hi,

    there was some effort going on to create a common base protocol for window management. I know Metacity (GNOME) and some KDE WMs obey it.

    Inter-Client Communication Conventions Manual - Wikipedia, the free encyclopedia
    Extended Window Manager Hints - Wikipedia, the free encyclopedia
    Debian GNU/Linux -- You know you want it.

Posting Permissions

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