Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have used User32.dll for window handling in Windows OS in which I have used following methods to identify the window and then changed focus of the window

C#
window = 
user32.FindWindow("notepad", null);
user32.SwitchToThisWindow(window,true);


Same thing I want to do for Linux OS but I am unable to do this task because I don't know that which library Linux provide us for window handling.

and which functions will be called instead of FindWindow() and SwitchToThisWindow()...


Thanks
Regards
Nei Sa
Posted
Comments
Sergey Alexandrovich Kryukov 22-Mar-14 21:57pm    
Linux? "notepad"? Really? What are you talking about?
—SA
Nei Sa 23-Mar-14 0:17am    
instead of notepad any pre-installed text editor or any other pre-instaled app..
Sergey Alexandrovich Kryukov 23-Mar-14 0:35am    
This is Windows thinking, but even for Windows, this would be a deeply useless activity.
For Linux, not only there is no such thing as this shared library, there are no predefined windows themselves. There is X11 system, which may or may not be installed, on top of it, one or another desktop environment, with its library, which may or may not be installed. And there is no a "pre-installed text editor"; and it does not matter if it is pre-installed or not. Overall, the question and the whole activity makes no sense at all.
—SA
Nei Sa 23-Mar-14 2:18am    
can you tell me that how can we swap windows in Linux? using X11 system.
Sergey Alexandrovich Kryukov 23-Mar-14 12:09pm    
I suspect the whole idea is wrong. Why doing all that? Let's start with Windows? Why did you do it in Windows?
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900