Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
> Switching beween Application
post Oct 6 2011, 07:47 AM
Post #1

Whats this Lie-nix Thing?

Group: Members
Posts: 1
Joined: 6-October 11
Member No.: 15,613

i am new to Linux......
Using C++. I have created a 3 Buttons. Each Button opens one Applications as a separate Process (
Say for Example Button1 opens Xterm, Button2 opens Firefox Button3 Opens Calculator
i have clicked on all 3 Buttons and all three applications are running.

i want to implement a feature like this, If i click on Button1 Again i want to make sure that Xterm that was already opened Get the Focus. i.e The I do not want to open a new Xterm But to bring the Xterm window that was previously opened on the top of all the open windows. How do i implement this?

Since the applications are started as Process i do not have a Control over them. in C++ how do i get the control of a window that is opened in linux
Go to the top of the page
+Quote Post
Start new topic
post Nov 2 2011, 06:22 AM
Post #2

Its GNU/

Group: Support Specialist
Posts: 1,807
Joined: 23-January 03
Member No.: 360

Check for running processes to see your application is running and then either start or switch focus. How to switch focus is dependent on what desktop environment/windows manager you use.
Go to the top of the page
+Quote Post

Posts in this topic

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 17th July 2018 - 07:03 AM