[writing a compositor] Displaying something on the screen

2018-05-30 Thread adlo
I am attempting to write a simple test compositor using libweston. Here is my code so far: https://github.com/adlocode/test-libweston-desktop What else do I need to do in order to get it to the point where something appears on the screen, such as a rectangle of solid colour? Regards adlo

Re: unique id for wayland objects

2018-05-30 Thread zou lan
Hi Michel & pekka >>Yes, drm_handle_vblank must be called before drm_crtc_send_vblank_event, >>otherwise it's not surprising that the timestamp in the event is wrong. :) Yes. our code call drm_crtc_send_vblank event first. The orignal fps is 60, but if I swap the order of drm_crtc_send_vblank_even

[PATCH libinput 1/2] udev: drop the custom firmware detection code in favor of a modalias

2018-05-30 Thread Peter Hutterer
This was overengineered. The separation between the model quirks file and the udev hwdb matches allowed for more complex firmware detection. Except we never used it anywhere but on ALPS and there we can, thankfully, just get it from the version number in the input_id field exposed in the modalias.

[PATCH libinput 2/2] udev: drop the JUMPING_SEMI_MT quirk, no-one uses it

2018-05-30 Thread Peter Hutterer
Obsolete since 342bc510164e89d7c9a742406fb98f9deabf5c8f when we disabled MT on all semi-mt touchpads. Signed-off-by: Peter Hutterer --- src/evdev.c | 1 - src/evdev.h | 1 - test/litest-device-synaptics-hover.c | 10 - udev/libinput-mod

Re: unique id for wayland objects

2018-05-30 Thread Michel Dänzer
On 2018-05-30 02:48 PM, Pekka Paalanen wrote: > On Wed, 30 May 2018 18:33:40 +0800 > zou lan wrote: > >> Hi pekka >> >> I'm not familiar with kernel. I know part of drm driver is implement by >> ourself. I check the vblank callback function, it sends pageflip event >> first if there is a frame co

Re: unique id for wayland objects

2018-05-30 Thread Pekka Paalanen
On Wed, 30 May 2018 18:33:40 +0800 zou lan wrote: > Hi pekka > > I'm not familiar with kernel. I know part of drm driver is implement by > ourself. I check the vblank callback function, it sends pageflip event > first if there is a frame complete, update vblank timestamp later. > > I don't know

Re: [PATCH wayland-protocols v2] unstable/drm-lease: DRM lease protocol support

2018-05-30 Thread Marius-cristian Vlad
On Tue, 2018-05-29 at 17:10 +0300, Pekka Paalanen wrote: > On Mon, 12 Feb 2018 16:51:51 +0200 > Marius Vlad wrote: > > > Simple protocol extension to manage DRM lease. Based on the work by > > Keith > > Packard in [1], respectively [2]. > > > > [1] https://cgit.freedesktop.org/mesa/drm/commit/?i

Re: [PATCH weston v2 10/12] weston: add touchscreen_calibrator option

2018-05-30 Thread Pekka Paalanen
On Wed, 30 May 2018 12:25:02 +1000 Peter Hutterer wrote: > On Mon, Apr 30, 2018 at 04:03:32PM +0300, Pekka Paalanen wrote: > > From: Louis-Francis Ratté-Boulianne > > > > Add an option to enable the touchscreen calibrator interface. This is a > > global on/off toggle, in lack of more fine-grain

Re: unique id for wayland objects

2018-05-30 Thread zou lan
Hi pekka I'm not familiar with kernel. I know part of drm driver is implement by ourself. I check the vblank callback function, it sends pageflip event first if there is a frame complete, update vblank timestamp later. I don't know why the owner write code like this. but if I swap the code order,

Re: [PATCH weston v9 8/9] weston: support clone mode on DRM-frontend

2018-05-30 Thread Marius-cristian Vlad
Hi, This no longer applies, due to man/weston-drm changes. Fixing that I get "atomic: get couldn't commit new state: Invalid argument". Does that mean that HW doesn't support CRTC sharing you mention in the description? Am I using it properly? One more thing I found that using the following co

Re: [PATCH_v2] virtual-keyboard: Add new virtual keyboard protocol

2018-05-30 Thread Jan Arne Petersen
Hey, On Wed, May 30, 2018 at 9:33 AM Peter Hutterer wrote: > On Thu, May 24, 2018 at 08:27:29PM +0200, Dorota Czaplejewicz wrote: > > Provides the ability to emulate keyboards by applications. Complementary to input-method protocol. > > > > The interface is a mirror copy of wl_keyboard, with rem