D29231: [WIP] Add keyboard_shortcuts_inhibit protocol

Aleix Pol Gonzalez noreply at phabricator.kde.org
Tue Apr 28 00:49:47 BST 2020


apol added inline comments.

INLINE COMMENTS

> keyboard_shortcuts_inhibit_interface.cpp:144
> +    QPair<SurfaceInterface *, SeatInterface *> key(surface, seat);
> +    if (m_inhibitors.contains(key)) {
> +        return m_inhibitors[key];

Just `return m_inhibitors.value({ surface, seat })` to save a look-up and a few lines of code.

REPOSITORY
  R127 KWayland

REVISION DETAIL
  https://phabricator.kde.org/D29231

To: bport, zzag, davidedmundson, apol
Cc: romangg, crossi, kde-frameworks-devel, LeGast00n, cblack, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200427/189142e7/attachment.html>


More information about the Kde-frameworks-devel mailing list