File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,3 +57,8 @@ docs/_build/
5757
5858# PyBuilder
5959target /
60+
61+ # IntelliJ
62+
63+ .idea /
64+
Original file line number Diff line number Diff line change @@ -206,6 +206,29 @@ def name_window_pixmap(self):
206206 cls = self .display .get_resource_class ('pixmap' , drawable .Pixmap )
207207 return cls (self .display , pid , owner = 1 )
208208
209+ class CompositeGetOverlayWindow (rq .ReplyRequest ):
210+ _request = rq .Struct (
211+ rq .Card8 ('opcode' ),
212+ rq .Opcode (7 ),
213+ rq .RequestLength (),
214+ rq .Window ('window' )
215+ )
216+ _reply = rq .Struct (
217+ rq .ReplyCode (),
218+ rq .Pad (1 ),
219+ rq .Card16 ('sequence_number' ),
220+ rq .ReplyLength (),
221+ rq .Window ('overlay_window' ),
222+ rq .Pad (20 ),
223+ )
224+
225+ def get_overlay_window (self ):
226+ """Return the overlay window of the root window.
227+ """
228+
229+ return CompositeGetOverlayWindow (display = self .display ,
230+ opcode = self .display .get_extension_major (extname ),
231+ window = self )
209232
210233def init (disp , info ):
211234 disp .extension_add_method ('display' ,
@@ -235,3 +258,7 @@ def init(disp, info):
235258 disp .extension_add_method ('window' ,
236259 'composite_name_window_pixmap' ,
237260 name_window_pixmap )
261+
262+ disp .extension_add_method ('window' ,
263+ 'composite_get_overlay_window' ,
264+ get_overlay_window )
You can’t perform that action at this time.
0 commit comments