~mir-team/mir/wayland-fix-keymaps-re-attempt

« back to all changes in this revision

Viewing changes to include/core/mir/shm_file.h

  • Committer: Alan Griffiths
  • Author(s): Christopher James Halse Rogers
  • Date: 2017-10-08 00:16:21 UTC
  • mfrom: (4279.1.2 mir0)
  • Revision ID: alan@octopull.co.uk-20171008001621-86saisokh8s7ixnl
WlKeyboard: Reconstruct xkbcommon state in the frontend.

This is a hack which should be replaced by exposing the information we need in the MirKeyEvent and in mf::Surface and…

This works for now by reconstructing xkbcommon state to serialise to the Wayland client. Wayland clients will *not* have the correct keymap, however, because we don't receive the MirKeymapEvent at an appropriate time.

Fixes: https://bugs.launchpad.net/mir/+bug/1718968

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *   Alexandros Frantzis <alexandros.frantzis@canonical.com>
18
18
 */
19
19
 
20
 
#ifndef MIR_GRAPHICS_MESA_SHM_FILE_H_
21
 
#define MIR_GRAPHICS_MESA_SHM_FILE_H_
 
20
#ifndef MIR_CORE_SHM_FILE_H_
 
21
#define MIR_CORE_SHM_FILE_H_
22
22
 
23
23
#include <cstddef>
24
24
 
25
25
namespace mir
26
26
{
27
 
namespace graphics
28
 
{
29
 
namespace common
30
 
{
31
27
 
32
28
class ShmFile
33
29
{
44
40
};
45
41
 
46
42
}
47
 
}
48
 
}
49
43
 
50
 
#endif /* MIR_GRAPHICS_MESA_SHM_FILE_H_ */
 
44
#endif /* MIR_CORE_SHM_FILE_H_ */