Re: [writing a compositor] wl_display_add_socket_auto fails

2018-05-10 Thread Sung-Jin Park
As I know, if it failed to lock lock file in wl_socket_lock(), it returns a negative value and wl_display_add_socket_auto() will continue to try to add socket with increased display number. In your case, it will try to create socket with wayland-1. Please check your compositor running with wayland

Re: [PATCH] server: Add get/set user data for wl_client

2016-02-17 Thread Sung-Jin Park
nicesj.) - There was a reply for the above request and It seemed positive to me. If this can be merged into the stream, it'll be good for me and other guys who wants to find this out. :) Thanks and regards, Sung-Jin Park 2016. 2. 11. 오후 7:08에 "Pekka Paalanen" 님이 작성: > Hi, >

[PATCH] server: Add get/set user data for wl_client

2016-01-27 Thread Sung-Jin Park
Signed-off-by: Sung-Jin Park --- src/wayland-server-core.h | 6 ++ src/wayland-server.c | 13 + 2 files changed, 19 insertions(+) diff --git a/src/wayland-server-core.h b/src/wayland-server-core.h index e8e1e9c..6990423 100644 --- a/src/wayland-server-core.h +++ b/src

[PATCH] server: Add an API to get the socket fd for a client

2016-01-14 Thread Sung-Jin Park
whether it is better than before ? :) Thanks and regards, Sung-Jin Park >sorry, that sounds completely bogus and I never implied anything like that. Oh, don't mention it. I misunderstood your comment. :) I'm also sorry for I mentioned UID in my previous email. I think that sounds

[PATCH v4] server: Add an API to get the file descriptor for a client

2016-01-13 Thread Sung-Jin Park
urity contexts associated with the file descriptor. Signed-off-by: Sung-Jin Park --- src/connection.c | 6 ++ src/wayland-private.h | 3 +++ src/wayland-server-core.h | 3 +++ src/wayland-server.c | 35 +++ 4 files changed, 47 insertions(+)

[PATCH v3] server: Add an API to get the socket fd for a client

2016-01-12 Thread Sung-Jin Park
socket) will have each security context in its inode as xattr member variable. A wayland compositor can validate a client request by getting socket fd of the client and by checking the security context associated with the socket fd. Signed-off-by: Sung-Jin Park --- src/wayland-server-core.h | 3

Re: [PATCH] server: Add an API to get the socket fd for a client

2016-01-12 Thread Sung-Jin Park
Jonas Ådahl, thanks for your review. wl_client_get_fd() looks better to me as well. Including API name, I'll correct comments as well. Thanks and regards, Sung-Jin Park 2016. 1. 13. 오전 11:32에 "Jonas Ådahl" 님이 작성: > On Tue, Jan 12, 2016 at 10:58:16AM -0600, Derek Foreman wrot

[PATCH v2] server: Add an API to get the socket fd for a client

2016-01-12 Thread Sung-Jin Park
socket) will have each security context in its inode as xattr member variable. A wayland compositor can validate a client request by getting socket fd of the client and by checking the security context associated with the socket fd. Signed-off-by: Sung-Jin Park --- src/wayland-server-core.h | 3

Re: [PATCH] server: Add an API to get the socket fd for a client

2016-01-12 Thread Sung-Jin Park
Derek, thanks for your review. :) I'll correct the comment regarding fd and update this patch. >Should probably just be > * \return The fd to use for the connection Thanks and regards, Sung-Jin Park 2016. 1. 13. 오전 1:58에 "Derek Foreman" 님이 작성: > On 11/01/16 04:30

[PATCH] server: Add an API to get the socket fd for a client

2016-01-11 Thread Sung-Jin Park
socket) will have each security context in its inode as xattr member variable. A wayland compositor can validate a client request by getting socket fd of the client and by checking the security context associated with the socket fd. Signed-off-by: Sung-Jin Park --- src/wayland-server-core.h | 3

Re: [libinput] A query regaring key remap functionality

2015-12-21 Thread Sung-Jin Park
this information ?? Udev MAY provide >>> SOME config info ... >>> >>> but as far as key remapping "X" was able to do this via some standard >>> place to "read" possible remaps ... perhaps we (read: libinput) could >>> reuse >&

Fwd: [libxkbcommon] Question about how to get xkb_keycode_t from xkb_keysym_t.

2015-06-01 Thread Sung-Jin Park
in libxkbcommon ? === Thanks and regards, Sung-Jin Park --- Original Message --- Sender : Sung-Jin Park S5/Senior Engineer/Common Platform Lab./Samsung Electronics Date : 2015-06-01 15:16 (GMT+09:00) Title : [libxkbcommon] Question a

[libxkbcommon] Question about how to get xkb_keycode_t from xkb_keysym_t.

2015-05-31 Thread Sung-Jin Park
Title: Samsung Enterprise Portal mySingle Dear Daniel Stone, Ran Benita and all, I'd like to ask how to get keycode(s) from keysym using libxkbcommon API. Is there any API in libxkbcommon ?   Thanks in advance, Sung-Jin Park   ___ wa