platform/core/uifw/libds.git
2 years agodata_device: Send dnd finish when destroying data_offer 20/280020/1
Seunghun Lee [Wed, 17 Aug 2022 05:59:50 +0000 (14:59 +0900)]
data_device: Send dnd finish when destroying data_offer

Change-Id: I92ce0690b8dae6178c96cefd702b178e6fc7e610

2 years agodata_device: Fix formatting 19/280019/1
Seunghun Lee [Wed, 17 Aug 2022 04:48:22 +0000 (13:48 +0900)]
data_device: Fix formatting

Change-Id: Ib33ed7c3420c4302c77d338f9c6588576ede3594

2 years agodata_device, tinyds: Handle focus at data_device when a drag starts 18/280018/1
Seunghun Lee [Wed, 17 Aug 2022 04:40:50 +0000 (13:40 +0900)]
data_device, tinyds: Handle focus at data_device when a drag starts

This reverts commit "a0b0f5148126278f3a3a9f1770cc746222f97a3,
"tinyds: Call ds_seat_pointer_notify_enter() before notify_motion()".

Plus, ds_seat_pointer_notify_enter() is called by drag implementation.

Change-Id: Ib648df2f45c8274956bbc3ab557ba506002a3a91

2 years agoseat: Add ds_seat_pointer_get_focused_surface() 17/280017/1
Seunghun Lee [Wed, 17 Aug 2022 04:35:07 +0000 (13:35 +0900)]
seat: Add ds_seat_pointer_get_focused_surface()

This function will be used by data_device to give a focus when a drag
starts.

Change-Id: I13dc4ea73ac8b5d5c4bab6c3e62c1e4976e91a86

2 years agodata_device: Refactor code of drag and drop 16/280016/1
Seunghun Lee [Wed, 17 Aug 2022 01:15:01 +0000 (10:15 +0900)]
data_device: Refactor code of drag and drop

Change-Id: Ie3c7230e28a892929309ca394a116dce9a10b986

2 years agoseat: export functions for getting seat/seat_client 32/279932/1
duna.oh [Fri, 19 Aug 2022 01:37:33 +0000 (10:37 +0900)]
seat: export functions for getting seat/seat_client

This patch allows the compositor to be able to get
ds_seat/ds_seat_client from wl_resource.

Change-Id: I696a288fd5e99940cb2c918bb6c88d13a077adf3

2 years agooutput: add omitted APIs to header 43/279843/1 accepted/tizen/unified/20220821.211115 submit/tizen/20220818.083245 submit/tizen/20220819.052238
Junkyeong Kim [Thu, 18 Aug 2022 08:30:49 +0000 (17:30 +0900)]
output: add omitted APIs to header

Change-Id: Ie0d7d505e0aaa1f6d82265d69054db91997bee5a
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
2 years agobuffer: Add ds_buffer_get_resource API 39/279839/1
Junkyeong Kim [Fri, 12 Aug 2022 08:09:21 +0000 (17:09 +0900)]
buffer: Add ds_buffer_get_resource API

Change-Id: I31908a439eb438dfd99221618742174f1872e44f
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
2 years agotinyds: Handle request_start_drag event 30/279830/1
Seunghun Lee [Tue, 16 Aug 2022 10:23:41 +0000 (19:23 +0900)]
tinyds: Handle request_start_drag event

Change-Id: I83f87b5a8220aa5aa9dd3720bf02b57ab3e99bbd

2 years agotinyds: Call ds_seat_pointer_notify_enter() before notify_motion() 29/279829/1
Seunghun Lee [Tue, 16 Aug 2022 10:20:34 +0000 (19:20 +0900)]
tinyds: Call ds_seat_pointer_notify_enter() before notify_motion()

This is to give a chance to the pointer grabber of drag to handle enter.

Change-Id: I931ef7094f974b7150dd1add4d31a4c57f9afa33

2 years agotinyds: Fix server_view_at() 28/279828/1
Seunghun Lee [Tue, 16 Aug 2022 10:16:04 +0000 (19:16 +0900)]
tinyds: Fix server_view_at()

Change-Id: I522fde7fb5c82c29df22d74a524c75e6813cf839

2 years agotinyds: Place toplevel surfaces on random position 27/279827/1
Seunghun Lee [Tue, 16 Aug 2022 10:14:03 +0000 (19:14 +0900)]
tinyds: Place toplevel surfaces on random position

This is to make drag and drop test easier.

Change-Id: I11d8da198a42398e11c21b9901db3952f3daef59

2 years agodata_device: Add start drag operation 26/279826/1
Seunghun Lee [Tue, 16 Aug 2022 10:11:42 +0000 (19:11 +0900)]
data_device: Add start drag operation

Change-Id: I70007fd98a9e64653bb06a14e16ec5dc21b05b7c

2 years agoseat: Add APIs needed by data_device 25/279825/1
Seunghun Lee [Tue, 16 Aug 2022 10:10:54 +0000 (19:10 +0900)]
seat: Add APIs needed by data_device

Change-Id: I879fccd534aec397fcca2e41a9cc9ac4169d0eba

2 years agodata_device: Create ds_data_device per seat_client 24/279824/1
Seunghun Lee [Fri, 12 Aug 2022 02:17:40 +0000 (11:17 +0900)]
data_device: Create ds_data_device per seat_client

Change-Id: Ib2c74c3f26ca7bead4d707e7b642a8e8d605be7c

2 years agodata_device: Add dnd implementation to ds_data_source_client 23/279823/1
Seunghun Lee [Thu, 11 Aug 2022 08:44:59 +0000 (17:44 +0900)]
data_device: Add dnd implementation to ds_data_source_client

Change-Id: I2c08a3a803419e079bf0607dbfd2bae699732fc7

2 years agodata_device: Add dnd implementation to ds_data_offer 22/279822/1
Seunghun Lee [Thu, 11 Aug 2022 07:05:16 +0000 (16:05 +0900)]
data_device: Add dnd implementation to ds_data_offer

Change-Id: I5c38f00421dda52dcaa08bf90cca18b2bc73f939

2 years agodata_deivce: Add dnd implementation to ds_data_source 21/279821/1
Seunghun Lee [Thu, 11 Aug 2022 02:08:52 +0000 (11:08 +0900)]
data_deivce: Add dnd implementation to ds_data_source

This adds dnd interface to ds_data_source.

Change-Id: I35f75977396f82774cf350df42d20f44c5903e80

2 years agodata_device: Start implementing drag and drop 20/279820/1
Seunghun [Tue, 9 Aug 2022 10:49:54 +0000 (19:49 +0900)]
data_device: Start implementing drag and drop

This patch introduces ds_drag and ds_drag_icon to handle drag and drop
operation.

Change-Id: Icfeedc47fba42f77fa632e186379373b925d9f44

2 years agoseat: Rename ds_seat_keyboard_destroy_grab properly 05/279805/2
Seunghun Lee [Thu, 11 Aug 2022 00:45:03 +0000 (09:45 +0900)]
seat: Rename ds_seat_keyboard_destroy_grab properly

This renames ds_seat_keyboard_destroy_grab to
ds_seat_keyboard_grab_destroy

The function takes ds_seat_keyboard_grab as a first argument, and we
use, by convention, name of object at the beginning of function name.

Change-Id: Ifaf19e319025644dfcee4a8f88bcfb3d0816aba0

2 years agoseat: Fix formatting 04/279804/2
Seunghun Lee [Thu, 11 Aug 2022 00:34:34 +0000 (09:34 +0900)]
seat: Fix formatting

This removes braces from if having one statement.

Change-Id: Iaa06dc69ce3a32bf112adfb9bbd5f28feca1bb2b

2 years agoseat: add extern 'C' in seat.h 10/279810/2
duna.oh [Fri, 12 Aug 2022 10:36:10 +0000 (19:36 +0900)]
seat: add extern 'C' in seat.h

Without this extern "C", C++ program (ex. test cases) does not recognize
the symbols in this header file.

Change-Id: I8d86fbfe59aa7f8f051ba34e7240ac5bbfcc9969

2 years agoxdg_shell: Add toplevel_set_activated() 18/279618/2
Seunghun Lee [Wed, 3 Aug 2022 04:15:06 +0000 (13:15 +0900)]
xdg_shell: Add toplevel_set_activated()

Change-Id: Ic6b9a12ce5a158e6e737593c05e6b765ee5c0673

2 years agopackaging: Fix packaging break 22/279522/2
Seunghun Lee [Wed, 10 Aug 2022 05:07:53 +0000 (14:07 +0900)]
packaging: Fix packaging break

Remove wl-backend binary from packaging. This change should have been
applied to a follow commit.

Author: Seunghun Lee <shiin.lee@samsung.com>
Date:   Thu Jul 14 09:30:42 2022 +0900

    exmaples: Remove an example 'wl-backend'

    The 'wl-backend' is no longer necessary.

Change-Id: Ia5d5a8038c8ee16dedf8a65f253cf761a5606ebc

2 years agoexmaples: Remove an example 'wl-backend' 70/279470/1
Seunghun Lee [Thu, 14 Jul 2022 00:30:42 +0000 (09:30 +0900)]
exmaples: Remove an example 'wl-backend'

The 'wl-backend' is no longer necessary.

Change-Id: I98421fc0ae02f65693468ea013a24320092a4bda

2 years agotinyds: Integrate idle_redraw into idle_task 69/279469/1
Seunghun [Mon, 8 Aug 2022 07:29:14 +0000 (16:29 +0900)]
tinyds: Integrate idle_redraw into idle_task

Change-Id: Id653519e35f5a9787451abe481012ea9fa5996eb

2 years agotinyds: Update seat capabilities properly 68/279468/1
Seunghun [Mon, 8 Aug 2022 07:15:58 +0000 (16:15 +0900)]
tinyds: Update seat capabilities properly

Change-Id: I1c3cee34e5c70bdfc4374f67e56e9d7236b5fda6

2 years agotinyds: Fix not sendig all seat capabilities 67/279467/1
Seunghun [Fri, 5 Aug 2022 07:12:00 +0000 (16:12 +0900)]
tinyds: Fix not sendig all seat capabilities

The capabilities passing ds_seat_seat_capabilities should be set
bitwise.

Change-Id: Idb292124c14731560ad8fb16491ae2a9e1bbe0e5

2 years agotinyds: Default to INFO log level 66/279466/1
Seunghun [Fri, 5 Aug 2022 06:24:21 +0000 (15:24 +0900)]
tinyds: Default to INFO log level

Set the default logging level to INFO, and for some logs that is
so frequently printed out, set to DEBUG.

Change-Id: Idd81e5a12d174abd93aeefe746c0c9be93aa8f77

2 years agotinyds: Refactor out 65/279465/1
Seunghun Lee [Thu, 4 Aug 2022 08:47:59 +0000 (17:47 +0900)]
tinyds: Refactor out

Change-Id: Ia4d51ce58790812d34ca64e013808455c66f5a45

2 years agoAdd a FIXME comment for later correction. 64/279464/1
Seunghun Lee [Thu, 4 Aug 2022 08:38:59 +0000 (17:38 +0900)]
Add a FIXME comment for later correction.

Change-Id: I1ce39cb60fe6d247abd6686015c20491f1d1502a

2 years agotinyds: Remove __attribute__((unused)) 63/279463/1
Seunghun Lee [Tue, 2 Aug 2022 07:33:07 +0000 (16:33 +0900)]
tinyds: Remove __attribute__((unused))

It's not necessary since we've suppressed unused variable warnings.

Change-Id: Ide515c1ba60f5c7195b31d8be2ba9de0f434bd35

2 years agotinyds: Apply ds_data_device_manager 72/279272/1 accepted/tizen/unified/20220808.135406 submit/tizen/20220805.072229
Seunghun Lee [Tue, 2 Aug 2022 07:36:10 +0000 (16:36 +0900)]
tinyds: Apply ds_data_device_manager

Change-Id: Ib30b026aa8609bf73151400d8bce5f747de5fdc3

2 years agodata_device: Add clipboard functionality 71/279271/1
Seunghun Lee [Mon, 1 Aug 2022 09:38:24 +0000 (18:38 +0900)]
data_device: Add clipboard functionality

This patch implements ds_data_device_manager to handle
wl_data_device_manager.

Change-Id: If29715d88273dc1c892f15bb837080b41e9499ae

2 years agoseat: Add implementation for selection source 70/279270/1
Seunghun Lee [Mon, 1 Aug 2022 09:07:27 +0000 (18:07 +0900)]
seat: Add implementation for selection source

This functionality will be used by ds_data_device_manager in future
patches.

Change-Id: Id1863f243ab718fff2aeee7cfa515a4c96e66b4d

2 years agoAdd skeleton code for ds_data_device_manager 69/279269/1
Seunghun [Thu, 21 Jul 2022 04:28:21 +0000 (13:28 +0900)]
Add skeleton code for ds_data_device_manager

Change-Id: I1c298afcfcf5a73eb421a576b87357fda4e5b4dd

2 years agoadd libds-tests 47/279247/1
SooChan Lim [Thu, 4 Aug 2022 01:06:17 +0000 (10:06 +0900)]
add libds-tests

libds-tests is unit tests using gtest framwork.

Change-Id: I323fe81972d8f79018a39b55c820052c090db40c

2 years agooutput: Fix crash because of missing wl_list_init() 05/279205/1
Seunghun Lee [Wed, 3 Aug 2022 09:53:32 +0000 (18:53 +0900)]
output: Fix crash because of missing wl_list_init()

Change-Id: Ia52d2cba5fc01ef998879b07fc4e0cfcaaf92828

2 years agokeyboard: Fix leak when destroying ds_keyboard 96/279196/2
Seunghun Lee [Wed, 3 Aug 2022 04:35:13 +0000 (13:35 +0900)]
keyboard: Fix leak when destroying ds_keyboard

Change-Id: I04f6446697d96ac023b23b9e1634580444c384a8

2 years agooutput: Add ds_output_{create,destroy}_global() 95/279195/1
Seunghun Lee [Mon, 18 Jul 2022 09:25:12 +0000 (18:25 +0900)]
output: Add ds_output_{create,destroy}_global()

This adds wl_output globals for ds_outputs.

Change-Id: I946206f33eeb00f484731767ce1b836b46b62947

2 years agobuild: Set default warning_level=3 20/278120/1 sandbox/actiontest accepted/tizen/unified/20220718.140337 submit/tizen/20220718.065110
Seunghun Lee [Wed, 13 Jul 2022 06:39:36 +0000 (15:39 +0900)]
build: Set default warning_level=3

This patch suppresses 'unused-parameter' and 'pedantic' GCC warnings
that we don't care about.

After suppressing these warnings, we can now enable the highest
warning_level by default.

Change-Id: I4402766a5cdabd6984582c17805c41c1f8a66645

2 years agoseat: Fix dangling focused_client in pointer 19/278119/1
Seunghun Lee [Mon, 11 Jul 2022 03:16:18 +0000 (12:16 +0900)]
seat: Fix dangling focused_client in pointer

This patch handles destroy signal of focused_client of pointer, and
also contains a bit of refactoring.

Change-Id: I091f9b5d580ba6a36e51360d6757dfb434b03eab

2 years agoseat: Fix dangling focused_client in keyboard 18/278118/1
Seunghun Lee [Mon, 11 Jul 2022 02:36:50 +0000 (11:36 +0900)]
seat: Fix dangling focused_client in keyboard

This patch handles destroy signal of focused_client of keyboard, and
also contains a bit of refactoring.

Change-Id: I54473c3e37c770e4889066dba283fe65dc3751cd

2 years agoFix typo 17/278117/1
이승훈/Tizen Platform Lab(SR)/삼성전자 [Wed, 13 Jul 2022 05:16:56 +0000 (14:16 +0900)]
Fix typo

Change-Id: Iafd3e13c80569e9468b894156d52920eb63c2e6f
Co-authored-by: 코드리뷰봇/Quality Tool Lab(SR)/삼성전자 <reviewbot@samsung.com>
2 years agobuffer: Add null check after wl_array_add() 16/278116/1
Seunghun Lee [Wed, 13 Jul 2022 05:05:47 +0000 (14:05 +0900)]
buffer: Add null check after wl_array_add()

Change-Id: Id5047a9df1418069bd568a44dc702f13fcc509e7

2 years agoxdg_shell, xdg_shell_v6: Remove unreachable code 15/278115/1
Seunghun Lee [Wed, 13 Jul 2022 04:50:19 +0000 (13:50 +0900)]
xdg_shell, xdg_shell_v6: Remove unreachable code

Change-Id: I2ffdb8d385f5cfc07b272505e134f04b16bd7859

2 years agoshm: Use snprintf() instead of vulnerable strcat() 14/278114/1
Seunghun Lee [Wed, 13 Jul 2022 04:42:09 +0000 (13:42 +0900)]
shm: Use snprintf() instead of vulnerable strcat()

Change-Id: I0c7a2dd640993387dcaf1bf8f1db0eae593b4030

2 years agoregion: Remove unreachable code 13/278113/1
Seunghun Lee [Wed, 13 Jul 2022 03:50:08 +0000 (12:50 +0900)]
region: Remove unreachable code

And this also adds an assert when unknown transform is given.

Change-Id: Ic2e9b01ce2106f02f4a4032f2125a8fa9153ae54

2 years agobackend-wayland: Fix using uninitialized data 12/278112/1
Seunghun Lee [Wed, 13 Jul 2022 03:18:21 +0000 (12:18 +0900)]
backend-wayland: Fix using uninitialized data

Change-Id: Ia37e244b20dbc8f715d17c86ba92385571b5873f

2 years agotinyds: Notify button event of pointer 11/278111/1
Seunghun Lee [Wed, 13 Jul 2022 03:09:31 +0000 (12:09 +0900)]
tinyds: Notify button event of pointer

Change-Id: Ie4ec66d5823978fa3a04b3cafa7dbc95ce8fdd38

2 years agoxdg_shell_v6: Remove 'xdg-shell-unstable-v6-server' dependency 10/278110/1
Seunghun Lee [Tue, 12 Jul 2022 01:17:10 +0000 (10:17 +0900)]
xdg_shell_v6: Remove 'xdg-shell-unstable-v6-server' dependency

The rpm package 'xdg-shell-unstable-v6-server' isn't always provided
on every platform. So, this patch generates code and header from
wayland-protocols using wayland-scanner.

Change-Id: I8dc7e751b1f9a2d2c02fb339efd2d620dfb63f7a

2 years agoseat: Add API for keyrouter 09/278109/1
Seunghun Lee [Wed, 6 Jul 2022 00:25:07 +0000 (09:25 +0900)]
seat: Add API for keyrouter

The keyrouter module which lives in libds-tizen project needs to send
keyboard key events to several wl_clients according to its policy.
To support this functionality, this patch implements related API.

Among them, the notable API is ds_seat_client_send_key() which enables
keyrouter to send keyboard key events to non-focused wl_client.

Change-Id: I8cfd47d6ed6536163d0eb1bb0102fb102d78afd9

2 years agosurface: Export ds_surface_get_wl_resource() 08/278108/1
Seunghun Lee [Tue, 5 Jul 2022 10:53:07 +0000 (19:53 +0900)]
surface: Export ds_surface_get_wl_resource()

Change-Id: Icf1a5a2ac9548817ce37d27a7f92ca9b55586804

2 years agoseat: Add ds_seat_set_keyboard() 07/278107/1
Seunghun Lee [Wed, 29 Jun 2022 07:19:52 +0000 (16:19 +0900)]
seat: Add ds_seat_set_keyboard()

The ds_seat_set_keyboard() enables a seat to refer to a ds_keyboard, so
that the seat reads keymap and repeat info from ds_keyboard and then
sends them to the wayland clients.

Change-Id: Ic20fa041f391d0f8c73c8a6818505525701e3929

2 years agofix the typo 06/278106/1
SooChan Lim [Mon, 4 Jul 2022 10:32:47 +0000 (19:32 +0900)]
fix the typo

Change-Id: I5185751f56cd506e1f458e51d40fb9758cc9aa61

2 years agoimplement the xdg_shell_v6 05/278105/1
SooChan Lim [Mon, 4 Jul 2022 10:12:59 +0000 (19:12 +0900)]
implement the xdg_shell_v6

It provides the wayland server implementation for zxdg_shell_v6_unstable
protocol.

Change-Id: I154bba10ba3cd9b7a35f93ac309808a172ee48df

2 years agoadd WL_EXPORT 04/278104/1
SooChan Lim [Wed, 29 Jun 2022 01:32:38 +0000 (10:32 +0900)]
add WL_EXPORT

Change-Id: I88c4eecae13f1d260b060364cb71acd067db8116

2 years agoremove the unused files 03/278103/1
SooChan Lim [Fri, 24 Jun 2022 00:59:11 +0000 (09:59 +0900)]
remove the unused files

These are files for libds-tizen

Change-Id: Iea8f14a87cda2d0613c1a29c7cc8025234612a67

2 years agoadd .clang-format 02/278102/1
SooChan Lim [Tue, 21 Jun 2022 01:53:35 +0000 (10:53 +0900)]
add .clang-format

Add clang-format option file for coding rules.
Run a clang-format command below.
  # clang-format -i [file]

Change-Id: Ib744f0708a7f41d052e1fce869d819b1cdad5d35

2 years agosurface: Export functions for surface role 01/278101/1
Seunghun Lee [Mon, 23 May 2022 07:50:58 +0000 (16:50 +0900)]
surface: Export functions for surface role

This patch exports functions of ds_surface for the compositor to
be able to assign a role to ds_surfaces.

Change-Id: I8f79bb2a97de290ed304336408d258d91a7c3abc

2 years agoseat: move 'grab' related struct definitions to include folder 00/278100/1
duna.oh [Wed, 8 Jun 2022 07:46:45 +0000 (16:46 +0900)]
seat: move 'grab' related struct definitions to include folder

Change-Id: If430058bb6a962ef4e859efb0ec91edf423bfb94

2 years agoclients: remove 'input-generator' 99/278099/1
duna.oh [Wed, 8 Jun 2022 07:44:14 +0000 (16:44 +0900)]
clients: remove 'input-generator'

Change-Id: I6a0d61ef7d0717d9f9e7e504c25a606ab092c4db

2 years agorearrange the directory of the libds respository 98/278098/1
SooChan Lim [Wed, 8 Jun 2022 00:24:33 +0000 (09:24 +0900)]
rearrange the directory of the libds respository

Change-Id: I4edc18679d585feef80aca84c526dd4f414ed1b8

2 years agoremove libds-tizen stuffs 97/278097/1
SooChan Lim [Fri, 3 Jun 2022 23:59:17 +0000 (08:59 +0900)]
remove libds-tizen stuffs

all files of libds-tizen move to libds-tizen repository

Change-Id: I4349558c36e45f2c4e2877e7a416d9ac9eaad5a9

2 years agokeyrouter: Fix wrong validity check 96/278096/1
Seunghun Lee [Tue, 7 Jun 2022 23:30:48 +0000 (08:30 +0900)]
keyrouter: Fix wrong validity check

Change-Id: I0f26218b5305565061f35a5cd7a1c1739190a94f

2 years agodevicemgr: implement libds-tizen-input-devicemgr 95/278095/1
duna.oh [Tue, 7 Jun 2022 10:38:39 +0000 (19:38 +0900)]
devicemgr: implement libds-tizen-input-devicemgr

Change-Id: I7b5d45cd96122bb4f5d7926bd6d3d830475f5696

2 years agodpms: set ds_tizen_dpms enum value by tizen dpms protocol enum value 94/278094/1
Junkyeong Kim [Tue, 7 Jun 2022 04:35:51 +0000 (13:35 +0900)]
dpms: set ds_tizen_dpms enum value by tizen dpms protocol enum value

Change-Id: I55c31d0be7d92f4c85ffcd9c712bc61e54058073
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
2 years agoclient: add simple-dpms 93/278093/1
Junkyeong Kim [Tue, 7 Jun 2022 04:34:43 +0000 (13:34 +0900)]
client: add simple-dpms

Change-Id: Ibd038539152aaee0f8f6a78f9eee88d7a542afcc
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
2 years agoexample: add tinyds-tdm-dpms 92/278092/1
Junkyeong Kim [Tue, 7 Jun 2022 04:31:32 +0000 (13:31 +0900)]
example: add tinyds-tdm-dpms

Change-Id: Ic63b2893120fc46865559a49e0dc34c376f3a1ca
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
2 years agodpms: fix build error 91/278091/1
Junkyeong Kim [Tue, 7 Jun 2022 04:29:44 +0000 (13:29 +0900)]
dpms: fix build error

Change-Id: I06c768d97d26ccee3ca85825e653c6cc56538539
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
2 years agokeyrouter: Return an appropriate value 90/278090/1
Seunghun Lee [Fri, 3 Jun 2022 09:12:29 +0000 (18:12 +0900)]
keyrouter: Return an appropriate value

The return value of keyrouter_grab_check_grabbed() is boolean. So let's
make it right.

Change-Id: I27048b419ad8e5b13060b5d87f2948b6e3c15d80

2 years agokeyrouter: Fix wrong return value 89/278089/1
Seunghun Lee [Fri, 3 Jun 2022 09:05:12 +0000 (18:05 +0900)]
keyrouter: Fix wrong return value

According to implementation of pepper keyrouter which is a reference of
libds keyrouter, keyrouter_grab_check_grabbed() is supposed to return
true if a list of MODE_EXCLUSIVE is not empty.

This error seems to have been introduced by mistake during the
migration from pepper.

Change-Id: I18f3b133cb44e983d929da1c525c8bf878cdd5c6

2 years agosecurity: Enable cynara to be built 88/278088/1
Seunghun Lee [Thu, 2 Jun 2022 05:22:55 +0000 (14:22 +0900)]
security: Enable cynara to be built

This patch also removes conditional compilation for cynara. This should
be considered again if it gets needed.

Change-Id: I0597b3914780c30ce2b1835dd7089b6bc8f47888

2 years agotizen-util: Include an appropriate header 87/278087/1
Seunghun Lee [Thu, 2 Jun 2022 04:53:14 +0000 (13:53 +0900)]
tizen-util: Include an appropriate header

Change-Id: I3ee70dc2ed75a4ef04ac7d8c604d5be8521651d0

2 years agosecurity: Refactor implementation for cynara 86/278086/1
Seunghun Lee [Thu, 2 Jun 2022 04:50:54 +0000 (13:50 +0900)]
security: Refactor implementation for cynara

No functional changes

Change-Id: I8cfe200969f71ad761dae5c06bfa3227ca89ffd5

2 years agosecurity: Remove meaningless double check 85/278085/1
Seunghun Lee [Thu, 2 Jun 2022 04:14:29 +0000 (13:14 +0900)]
security: Remove meaningless double check

In the function tizen_security_check_privilege(), it double-checks
a g_cynara to see if it exists and then return different value if it
doesn't exist which is contradictory.

Let's just return false if initializing the cynara has been failed
or not been initialized.

Change-Id: If141f0e9bcc75ee0804cfa65bb136121d4d23fcc

2 years agoadd review-bot as a reviewer 84/278084/1
SooChan Lim [Fri, 27 May 2022 02:39:45 +0000 (11:39 +0900)]
add review-bot as a reviewer

Change-Id: Ida05f30c7edcc66605593a600e27901ced3f71c6

2 years agoclient: add simple-shm-shell sample 83/278083/1
SooChan Lim [Thu, 19 May 2022 01:38:44 +0000 (10:38 +0900)]
client: add simple-shm-shell sample

This is a simple wayland-client which use wl_shm and wl_shell interface.

Change-Id: I48cfeebde8e6a5e6621942c2f0f7c642f5372111

2 years agoshell: implement wl_shell_interface 82/278082/1
SooChan Lim [Mon, 16 May 2022 08:39:29 +0000 (17:39 +0900)]
shell: implement wl_shell_interface

ds_shell and ds_shell_surface are resources which implement the
wl_shell_interface and wl_shell_surface_interface.

Change-Id: I1064d0b431bdf1fd734353b58bc7994d202e9c57

2 years agofix the build warning 81/278081/1
SooChan Lim [Wed, 18 May 2022 05:32:31 +0000 (14:32 +0900)]
fix the build warning

Change-Id: I045dbf51644e8ab10ed12820a8c7a9e624741354

2 years agokeyrouter: change the prefix of the internal functions 80/278080/1
SooChan Lim [Thu, 19 May 2022 10:34:06 +0000 (19:34 +0900)]
keyrouter: change the prefix of the internal functions

remove the tizen prefix.

Change-Id: I57bf64185af71a0ea2f423e21d3bdfc8ccf3a93f

2 years agolibinput: get event time from libinput_event 79/278079/1
duna.oh [Thu, 19 May 2022 01:03:25 +0000 (10:03 +0900)]
libinput: get event time from libinput_event

Change-Id: I3fd692358a93937edf6516599598c074ca6ef419

2 years agoexample: add an executable 'tinyds-tdm-libinput' and handle ds_seat 78/278078/1
duna.oh [Wed, 18 May 2022 09:39:54 +0000 (18:39 +0900)]
example: add an executable 'tinyds-tdm-libinput' and handle ds_seat

Change-Id: I71e53ae7bb143fcd69ee6259d9b5934be192bbbf

2 years agoseat: fix the typo. should handle a proper device type 77/278077/1
duna.oh [Wed, 18 May 2022 09:37:26 +0000 (18:37 +0900)]
seat: fix the typo. should handle a proper device type

Change-Id: I43478be7fe6e6d932450a018a4e20cb331547813

2 years agotinyds: Handle ds_seat 76/278076/1
Seunghun Lee [Wed, 4 May 2022 06:34:19 +0000 (15:34 +0900)]
tinyds: Handle ds_seat

tinyds now handles ds_seat, but only for pointer.

Change-Id: I10057c90ce25a23ca17802ea4685f1988553e80b

2 years agoAdd ds_seat 75/278075/1
Seunghun Lee [Wed, 20 Apr 2022 01:11:12 +0000 (10:11 +0900)]
Add ds_seat

ds_seat abstracts wl_seat protocol of server implementation.

Change-Id: Ie2a7a14c67f0369839a4e878942c9356ff2a53a5

2 years agods_dpms: Init ds_dpms 74/278074/1
Junkyeong Kim [Wed, 11 May 2022 07:30:21 +0000 (16:30 +0900)]
ds_dpms: Init ds_dpms

Ds_dpms is wayland-server implemantation of tizen_dpms protocol.

Change-Id: I774a743de26bd8c516ae0991daf28c3e20f50ec5
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
2 years agobackend/libinput: Support libinput backend 73/278073/1
duna.oh [Thu, 12 May 2022 06:52:31 +0000 (15:52 +0900)]
backend/libinput: Support libinput backend

add struct ds_libinput_backend, ds_libinput_input_device, etc.
add an executable 'libinput-backend' to test libinput events

Change-Id: Ifbc5ab8e587fbbc0767a3070da6b7b548d990cac

2 years agoimplement the libds-tizen-keyrouter 72/278072/1
SooChan Lim [Wed, 11 May 2022 07:48:55 +0000 (16:48 +0900)]
implement the libds-tizen-keyrouter

libds-tizen-keyrouter supports the tizen_keyrouter extension.
This is the first impelemtaion for it. It can be added the additional
apis onward.

Change-Id: I53e8df054d3534c0fa84f14273a61761332b1bf6

2 years agoadd security api which uses cynara 71/278071/1
SooChan Lim [Wed, 11 May 2022 07:45:58 +0000 (16:45 +0900)]
add security api which uses cynara

The keyrouter and devicemgr has to check the privilege when display
server gets the requests from these extensions. For this, security api
support the previlege check with cynara.

Change-Id: I0daba1b5c8dc5e0e7e5fb4e145d9d720fbf3ee38

2 years agods_output: Add ds_output_set_custom_mode 70/278070/1
Seunghun Lee [Wed, 4 May 2022 06:37:27 +0000 (15:37 +0900)]
ds_output: Add ds_output_set_custom_mode

Change-Id: I7d592ffc2f8336fa0b011f7c7a61fa0b72cfb444

2 years agotinyds: Fix passing wrong arg to wl_container_of 69/278069/1
Seunghun Lee [Wed, 4 May 2022 06:31:58 +0000 (15:31 +0900)]
tinyds: Fix passing wrong arg to wl_container_of

This led segfault illegally accessing wrong pointer.

Change-Id: I0e1ae98d8f93fa0ac44d53784b304e58988828fa

2 years agotinyds-tdm: Fix build break 68/278068/1
Seunghun Lee [Tue, 26 Apr 2022 00:22:06 +0000 (09:22 +0900)]
tinyds-tdm: Fix build break

Change-Id: I8439f6af62cdfd045eb0eb87c013df51aec9b034

2 years agobackend/wayland: Implement start() interface of ds_backend 67/278067/1
Seunghun Lee [Fri, 22 Apr 2022 00:17:57 +0000 (09:17 +0900)]
backend/wayland: Implement start() interface of ds_backend

The wayland backend defers creating new outputs until a user calls
ds_backend_start() even though a user requests creation of output before
ds_backend_start().

The wayland backend now emits a signal of new_output if a user calls
ds_backend_start(), which is for the behavior of ds_backend_start() to
be consistent regardless of the actual running backend.

Change-Id: If1748c7f591409c31b91438ba4ec561f7897e3fc

2 years agotinyds: Use WAYLAND_DISPLAY and WAYLAND_SOCKET for wl backend 66/278066/1
Seunghun Lee [Mon, 25 Apr 2022 07:06:21 +0000 (16:06 +0900)]
tinyds: Use WAYLAND_DISPLAY and WAYLAND_SOCKET for wl backend

Instead of assuming the name of wayland display server by iterating
arbitrary number of names, it uses values of WAYLAND_DISPLAY and
WAYLAND_SOCKET environments.

The library of wayland-client uses these values when trying to connect
to wayland server.

Change-Id: I0579dab7eadcd3580b0ee0ebadb9175fc0bcd0a5

2 years agobackend/wayland: Remove writable flag from event source 65/278065/1
Seunghun Lee [Thu, 21 Apr 2022 07:56:48 +0000 (16:56 +0900)]
backend/wayland: Remove writable flag from event source

Instead of having a writable flag on event source, it just marks
wayland event source as needing a post-dispatch check. The event loop
will call dispatch function again after all dispatching is done, with
mask = 0.

Change-Id: I183122d602626079137fbd34870dca1844f8ecd5

2 years agoexamples/tinyds: Handle ds_pointer 64/278064/1
Seunghun Lee [Thu, 21 Apr 2022 05:05:11 +0000 (14:05 +0900)]
examples/tinyds: Handle ds_pointer

This adds listeners of ds_pointer and prints logs.

Change-Id: I2eb47fc87958859fad5ad3b10d6a0608e7c2bce5

2 years agoexamples/tinyds: Enhance readability 63/278063/1
Seunghun Lee [Wed, 20 Apr 2022 11:16:37 +0000 (20:16 +0900)]
examples/tinyds: Enhance readability

No functional changes

- Use a first argument of function as a prefix of function name.
- Rename some of function name more clearly.
- Remove forward declaration of event handlers.

Change-Id: I73bc409fe7d33233cf7d5482923ea52ea142ee4e

2 years agoexamples/tinyds: Clean up all views when finish server 62/278062/1
Seunghun Lee [Wed, 20 Apr 2022 11:11:59 +0000 (20:11 +0900)]
examples/tinyds: Clean up all views when finish server

Even though all view would have been cleaned up by an destroy event of
xdg_surface, this is just to clean up views explicitly just in case.

No functional changes.

Change-Id: If92f6ee73d1b8a4043f93105478b8fc3e7e78c68

2 years agoexamples/tinyds: Clarify single output support 61/278061/1
Seunghun Lee [Wed, 20 Apr 2022 10:54:19 +0000 (19:54 +0900)]
examples/tinyds: Clarify single output support

tinyds doesn't support multiple outputs for now, so don't pretend to
support multiple outputs.

Change-Id: Icf8dcdeb89ff256d5d827f3dc67cb3d08b4f9a2a