Skip to content

Commit

Permalink
#1341: add another missing special case for 'scroll' draw data
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@14477 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Nov 23, 2016
1 parent 3f9a925 commit aa11a20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/html5/js/Protocol.js
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,8 @@ if (!(typeof window == "object" && typeof document == "object" && window.documen
protocol.is_worker = true;
// we create a custom packet handler which posts packet as a message
protocol.set_packet_handler(function (packet, ctx) {
postMessage({'c': 'p', 'p': packet}, packet[0] === 'draw' ? [packet[7].buffer] : []);
var raw_draw_buffer = packet[0] === 'draw' && packet[6] !== 'scroll';
postMessage({'c': 'p', 'p': packet}, raw_draw_buffer ? [packet[7].buffer] : []);
}, null);
// attach listeners from main thread
self.addEventListener('message', function(e) {
Expand Down

0 comments on commit aa11a20

Please sign in to comment.