mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 08:04:30 +00:00
composite: declare and initialize reply struct when needed
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
7d8f084fbf
commit
d0b6510b64
@@ -690,7 +690,6 @@ ProcCompositeGetOverlayWindow(ClientPtr client)
|
||||
if (!compositeUseXinerama)
|
||||
return SingleCompositeGetOverlayWindow(client, stuff);
|
||||
|
||||
xCompositeGetOverlayWindowReply rep;
|
||||
WindowPtr pWin;
|
||||
ScreenPtr pScreen;
|
||||
CompOverlayClientPtr pOc;
|
||||
@@ -766,7 +765,7 @@ ProcCompositeGetOverlayWindow(ClientPtr client)
|
||||
|
||||
cs = GetCompScreen(dixGetMasterScreen());
|
||||
|
||||
rep = (xCompositeGetOverlayWindowReply) {
|
||||
xCompositeGetOverlayWindowReply rep = {
|
||||
.overlayWin = cs->pOverlayWin->drawable.id
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user