diff options
author | 2017-08-29 15:01:08 +0200 | |
---|---|---|
committer | 2017-09-04 16:53:59 +0200 | |
commit | 00b37194da1eb8c39710cf9545f00d5f52b40791 (patch) | |
tree | 7ef3f2642727e16e09db4edcbd52f43f5f900db3 /src/app.cpp | |
parent | 38da977e18f4b9e9a295119b8bac194a8a87a498 (diff) |
app: use id_shift of 22, just like in Qt
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src/app.cpp')
-rw-r--r-- | src/app.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app.cpp b/src/app.cpp index 53a1a86..78dc7d9 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -413,7 +413,7 @@ void App::execute_pending() { // | .__/|_| \___/_/\_\_|\___|\__,_| |_____| \_/ \___|_| |_|\__|___/ // |_| void App::surface_created(uint32_t surface_id) { - surface_id &= id_allocator::id_mask; + surface_id >>= id_allocator::id_shift; logdebug("surface_id is %u", surface_id); @@ -423,7 +423,7 @@ void App::surface_created(uint32_t surface_id) { } void App::surface_removed(uint32_t surface_id) { - surface_id &= id_allocator::id_mask; + surface_id >>= id_allocator::id_shift; logdebug("surface_id is %u", surface_id); |