diff options
Diffstat (limited to 'plugins/unity-mt-grab-handles')
| -rw-r--r-- | plugins/unity-mt-grab-handles/src/unity-mt-grab-handle-layout.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/unity-mt-grab-handles/src/unity-mt-grab-handle-layout.cpp b/plugins/unity-mt-grab-handles/src/unity-mt-grab-handle-layout.cpp index 48fb1b589..cac9210e0 100644 --- a/plugins/unity-mt-grab-handles/src/unity-mt-grab-handle-layout.cpp +++ b/plugins/unity-mt-grab-handles/src/unity-mt-grab-handle-layout.cpp @@ -85,6 +85,14 @@ unity::MT::getLayoutForMask (unsigned int state, }, }; + /* Set the high bit if it was zero */ + if (!state) + state |= 0x8000; + + /* Set the high bit if it was zero */ + if (!actions) + actions |= 0x8000; + for (unsigned int j = 0; j < numSkipInfo; j++) { const bool exactState = skip[j].state && skip[j].state != static_cast <unsigned int> (~0); |
