LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-20-2009, 05:06 AM   #1
ravi13jain
LQ Newbie
 
Registered: Aug 2009
Posts: 4

Rep: Reputation: 0
How to switch the FOCUS between any two application.


Hi All,

Can anyone help me in providing the change Focus program or logic for switching between any two application.
There is X11 API's like XGetInputFocus and XsetInputFocus etc.
I have tried the sample code using these API's but i did not get the desired output.
Actually i was trying to make an Soft KeyBoard (virtual)application in which i need Focus trasfer mechanism to enter or send the key event as an input to another application.
Thanks in advance. Please Help.
 
Old 08-20-2009, 11:34 PM   #2
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by ravi13jain View Post
Hi All,

Can anyone help me in providing the change Focus program or logic for switching between any two application.
There is X11 API's like XGetInputFocus and XsetInputFocus etc.
I have tried the sample code using these API's but i did not get the desired output.
Actually i was trying to make an Soft KeyBoard (virtual)application in which i need Focus trasfer mechanism to enter or send the key event as an input to another application.
Thanks in advance. Please Help.
Might want to ask the mods to move this to the programming section since that is what it sounds like. It will help you get more exposure and an answer a lot quicker.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Focus on Click or anything else besides Focus on mouse. mellor Linux - Newbie 2 05-29-2008 12:31 PM
second X DISPLAY steals focus on application exit jhwilliams Linux - Software 1 08-23-2007 02:22 PM
How to switch an application from one desktop to another using command line demianxyz Linux - Software 2 10-15-2006 07:36 PM
How can switch between two application? stny Programming 2 01-11-2006 04:50 AM
thread switch results in kernel stack switch superstition Linux - General 1 05-18-2005 12:48 AM


All times are GMT -5. The time now is 10:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration