Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Active and Inactive Windows


    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.


  2. #2
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008

    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