D16434: Fix keyboard layout change notifications

Roman Gilg noreply at phabricator.kde.org
Sat Nov 3 11:36:03 GMT 2018


romangg accepted this revision.
romangg added a comment.
This revision is now accepted and ready to land.


  Pls do the coding style improvements and push.

INLINE COMMENTS

> kglobalaccel_x11.cpp:75
> +	const xcb_query_extension_reply_t *reply = xcb_get_extension_data(QX11Info::connection(), &xcb_xkb_id);
> +	if (reply && reply->present)
> +		m_xkb_first_event = reply->first_event;

https://techbase.kde.org/Policies/Frameworks_Coding_Style#Braces

> kglobalaccel_x11.cpp:207
>      const uint8_t responseType = event->response_type & ~0x80;
> -    switch (responseType) {
> -        case XCB_MAPPING_NOTIFY:
> -            qCDebug(KGLOBALACCELD) << "Got XMappingNotify event";
> -            xcb_refresh_keyboard_mapping(m_keySymbols, reinterpret_cast<xcb_mapping_notify_event_t*>(event));
> -            x11MappingNotify();
> -            return true;
> -
> -        case XCB_KEY_PRESS:
> +    if(responseType == XCB_MAPPING_NOTIFY) {
> +        x11MappingNotify();

https://techbase.kde.org/Policies/Frameworks_Coding_Style#Braces space after `if`

> kglobalaccel_x11.cpp:213
> +    }
> +    else if(responseType == XCB_KEY_PRESS) {
>  #ifdef KDEDGLOBALACCEL_TRACE

https://techbase.kde.org/Policies/Frameworks_Coding_Style#Braces space and on same line as closing brace

REPOSITORY
  R268 KGlobalAccel

BRANCH
  master

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

To: fvogt, #frameworks, #plasma, romangg
Cc: romangg, ngraham, anthonyfieroni, kde-frameworks-devel, michaelh, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20181103/93f4819d/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list