Set DMX_NAME property on root window instead.

This commit is contained in:
David Reveman 2008-09-02 14:16:40 +02:00
parent c37dd0d9c1
commit e625d17096
4 changed files with 5 additions and 17 deletions

View file

@ -93,25 +93,11 @@ static const unsigned char *dmxPropertyIdentifier(void)
return (unsigned char *)buf;
}
/** Prints a log message if \a dmxScreen is on the same backend X server
* as some other DMX backend (output) screen. Modifies the property
* (#DMX_ATOMNAME) on the backend X server to reflect the creation of \a
* dmxScreen.
*
* The root window of the backend X server holds a list of window ids
* for all DMX windows (on this DMX server or some other DMX server).
*
* This list can then be iterated, and the property for each window can
* be examined. This property contains the following tuple (no quotes):
*
* "#DMX_IDENT:<hostname running DMX>:<display name of DMX>,<screen number>"
*/
void dmxPropertyWindow(DMXScreenInfo *dmxScreen)
void dmxPropertyWindow(DMXScreenInfo *dmxScreen, Window win)
{
Atom atom;
const unsigned char *id = dmxPropertyIdentifier();
Display *dpy = dmxScreen->beDisplay;
Window win = dmxScreen->scrnWin;
char buf[128]; /* RATS: only used with XmuSnprintf */
if (!dpy)

View file

@ -36,7 +36,7 @@
#ifndef _DMXPROP_H_
#define _DMXPROP_H_
extern void dmxPropertyWindow(DMXScreenInfo *dmxScreen);
extern void dmxPropertyWindow(DMXScreenInfo *dmxScreen, Window win);
extern void dmxInitProps (void);
extern void dmxResetProps (void);
#endif

View file

@ -147,7 +147,6 @@ void dmxBEScreenInit(int idx, ScreenPtr pScreen)
XSelectInput (dmxScreen->beDisplay,
dmxScreen->scrnWin,
StructureNotifyMask);
dmxPropertyWindow(dmxScreen);
#ifdef RANDR
dmxBERRScreenInit (pScreen);

View file

@ -50,6 +50,7 @@
#include "dmxcursor.h"
#include "dmxfont.h"
#include "dmxatom.h"
#include "dmxprop.h"
#ifdef RENDER
#include "dmxpict.h"
#endif
@ -149,6 +150,8 @@ Window dmxCreateRootWindow(WindowPtr pWindow)
&attribs);
XLIB_EPILOGUE (dmxScreen);
dmxPropertyWindow (dmxScreen, win);
return win;
}