[Wayland-bugs] [Bug 103749] SW_TABLET_MODE disables monitor bezel button in tablet mode
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Mar 20 23:19:29 UTC 2018
https://bugs.freedesktop.org/show_bug.cgi?id=103749
--- Comment #28 from Davide Depau <davide at depau.eu> ---
(In reply to Peter Hutterer from comment #27)
> Comment on attachment 138226 [details] [review]
> 0001-evdev-don-t-suspend-keyboard-on-the-X1-Yoga-1st-DEPAU.patch
>
> Review of attachment 138226 [details] [review]:
> -----------------------------------------------------------------
>
> This should work, but it's inefficient. You're still pairing the tablet mode
> and the keyboard device, installing an event handler, etc. But then you just
> return early when the event comes in. The original patch from comment 15
> just skips the pairing, which means it should have the same effect. So it'd
> be useful to debug why the other patch didn't take effect in
> fallback_keyboard_pair_tablet_mode().
I'll try to check again tomorrow or in the next few days and come up with
something more efficient.
> ::: src/evdev-fallback.c
> @@ +1151,4 @@
> > swev = libinput_event_get_switch_event(event);
> > if (libinput_event_switch_get_switch(swev) !=
> > LIBINPUT_SWITCH_TABLET_MODE)
> > + return;
>
> detritus, please remove
>
> @@ +1155,3 @@
> >
> > + if (device->model_flags & EVDEV_MODEL_TABLET_MODE_NO_SUSPEND)
> > + return;
>
> please stick to the indentation rules the rest of libinput uses
IDE's fault ;)
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20180320/35bdff2f/attachment-0001.html>
More information about the wayland-bugs
mailing list