Wayland API to get the id of focus window [Seema Singh]

2014-02-20 Thread Seema Singh
Hi All,

In our module we have used the below mentioned   ecore_x APIs.
1.ecore_x_window_focus_get()
2.ecore_x_netwm_pid_get()

We are planning to move to wayland platform. But  could not find the below APIs 
in ecore_wayland.h file
Please let me know if anyone has come across the same issue.

Thanks  Regards,
Seema.

___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel


Re: Re: Wayland API to get the id of focus window [Seema Singh]

2014-02-20 Thread Seema Singh
Hi Carsten,

Thank you for your response.

first... by module... what does this code do? is it an enlightenment module? or
is it some external client process?

it's not an enlightenment module. It's an external client process.


so maybe you should first explain what you are doing, where and why, and
then... we can figure out what to do about it. :)

In our NFC module we are trying to do a NFC conditional APP launch.
Whenever a tag detects, client processes the Tag NDEF data and launch the 
application if its not launched.
  
Focus window pid is used for below check:
1. If focus window APP is not a NFC APP then launch the NFC APP
2. If already launched but not in focus then bring it to foreground.


Regards,
Seema.

--- Original Message ---
Sender : Carsten Haitzlerras...@rasterman.com 
Date   : Feb 20, 2014 18:52 (GMT+09:00)
Title  : Re: Wayland API to get the id of  focus window  [Seema Singh]

On Thu, 20 Feb 2014 09:12:50 + (GMT) Seema Singh seema.si...@samsung.com
said:

 Hi All,
 
 In our module we have used the below mentioned   ecore_x APIs.
 1.ecore_x_window_focus_get()
 2.ecore_x_netwm_pid_get()
 
 We are planning to move to wayland platform. But  could not find the below
 APIs in ecore_wayland.h file Please let me know if anyone has come across the
 same issue.

first... by module... what does this code do? is it an enlightenment module? or
is it some external client process?

if it's literally a module inside enlightenment... enlightenment knows the
focus already - check other internal api's. you'll want to be looking at git
master to track dev and features there as that is where the most complete
wayland support is. as for pid - that would be something the compositor can get
by interrogating the fd of the client socket connection.

if this is a 3rd party app/process, the answer is the 3rd party process has no
business knowing either of these bits of information for security reasons and
simply cleanliness of design.

so maybe you should first explain what you are doing, where and why, and
then... we can figure out what to do about it. :)

-- 
- Codito, ergo sum - I code, therefore I am --
The Rasterman (Carsten Haitzler)ras...@rasterman.com

___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel
pnbsp;/ppnbsp;/p
___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel