mirror of
https://github.com/danbulant/node-x11
synced 2026-06-17 05:31:05 +00:00
Add XFixes CreateRegionFromWindow request
- And add WINDOW_REGION_KIND type.
This commit is contained in:
parent
cf5eb392d6
commit
0288e45f08
1 changed files with 11 additions and 0 deletions
|
|
@ -48,6 +48,11 @@ exports.requireExt = function(display, callback)
|
|||
X.pack_stream.flush();
|
||||
};
|
||||
|
||||
ext.WindowRegionKind = {
|
||||
Bounding : 0,
|
||||
Clip : 1
|
||||
};
|
||||
|
||||
ext.CreateRegion = function(region, rects) {
|
||||
X.seq_num ++;
|
||||
var format = 'CCSL';
|
||||
|
|
@ -63,6 +68,12 @@ exports.requireExt = function(display, callback)
|
|||
X.pack_stream.pack(format, args);
|
||||
X.pack_stream.flush();
|
||||
}
|
||||
|
||||
ext.CreateRegionFromWindow = function(region, wid, kind) {
|
||||
X.seq_num ++;
|
||||
X.pack_stream.pack('CCSLLCxxx', [ ext.majorOpcode, 7, 4, region, wid, kind ]);
|
||||
X.pack_stream.flush();
|
||||
}
|
||||
|
||||
ext.DestroyRegion = function(region) {
|
||||
X.seq_num ++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue