Merge branch 'master' of git+ssh://git.freedesktop.org/git/xorg/xserver into input-hotplug
This commit is contained in:
commit
c85e64cba1
|
@ -66,7 +66,7 @@ BUILTIN_SRCS += $(XINERAMA_SRCS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Security extension: multi-level security to protect clients from each other
|
# Security extension: multi-level security to protect clients from each other
|
||||||
XCSECURITY_SRCS = security.c
|
XCSECURITY_SRCS = security.c securitysrv.h
|
||||||
if XCSECURITY
|
if XCSECURITY
|
||||||
BUILTIN_SRCS += $(XCSECURITY_SRCS)
|
BUILTIN_SRCS += $(XCSECURITY_SRCS)
|
||||||
|
|
||||||
|
|
64
Xext/xres.c
64
Xext/xres.c
|
@ -19,6 +19,8 @@
|
||||||
#include "swaprep.h"
|
#include "swaprep.h"
|
||||||
#include <X11/extensions/XResproto.h>
|
#include <X11/extensions/XResproto.h>
|
||||||
#include "pixmapstr.h"
|
#include "pixmapstr.h"
|
||||||
|
#include "windowstr.h"
|
||||||
|
#include "gcstruct.h"
|
||||||
#include "modinit.h"
|
#include "modinit.h"
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
@ -154,6 +156,7 @@ ProcXResQueryClientResources (ClientPtr client)
|
||||||
swapl (&rep.length, n);
|
swapl (&rep.length, n);
|
||||||
swapl (&rep.num_types, n);
|
swapl (&rep.num_types, n);
|
||||||
}
|
}
|
||||||
|
|
||||||
WriteToClient (client,sizeof(xXResQueryClientResourcesReply),(char*)&rep);
|
WriteToClient (client,sizeof(xXResQueryClientResourcesReply),(char*)&rep);
|
||||||
|
|
||||||
if(num_types) {
|
if(num_types) {
|
||||||
|
@ -185,13 +188,54 @@ ProcXResQueryClientResources (ClientPtr client)
|
||||||
return (client->noClientException);
|
return (client->noClientException);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static unsigned long
|
||||||
|
ResGetApproxPixmapBytes (PixmapPtr pix)
|
||||||
|
{
|
||||||
|
unsigned long nPixels;
|
||||||
|
int bytesPerPixel;
|
||||||
|
|
||||||
|
bytesPerPixel = pix->drawable.bitsPerPixel>>3;
|
||||||
|
nPixels = pix->drawable.width * pix->drawable.height;
|
||||||
|
|
||||||
|
/* Divide by refcnt as pixmap could be shared between clients,
|
||||||
|
* so total pixmap mem is shared between these.
|
||||||
|
*/
|
||||||
|
return ( nPixels * bytesPerPixel ) / pix->refcnt;
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
ResFindPixmaps (pointer value, XID id, pointer cdata)
|
ResFindPixmaps (pointer value, XID id, pointer cdata)
|
||||||
{
|
{
|
||||||
unsigned long *bytes = (unsigned long *)cdata;
|
unsigned long *bytes = (unsigned long *)cdata;
|
||||||
PixmapPtr pix = (PixmapPtr)value;
|
PixmapPtr pix = (PixmapPtr)value;
|
||||||
|
|
||||||
*bytes += (pix->devKind * pix->drawable.height);
|
*bytes += ResGetApproxPixmapBytes(pix);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
ResFindWindowPixmaps (pointer value, XID id, pointer cdata)
|
||||||
|
{
|
||||||
|
unsigned long *bytes = (unsigned long *)cdata;
|
||||||
|
WindowPtr pWin = (WindowPtr)value;
|
||||||
|
|
||||||
|
if (pWin->backgroundState == BackgroundPixmap)
|
||||||
|
*bytes += ResGetApproxPixmapBytes(pWin->background.pixmap);
|
||||||
|
|
||||||
|
if (pWin->border.pixmap != NULL && !pWin->borderIsPixel)
|
||||||
|
*bytes += ResGetApproxPixmapBytes(pWin->border.pixmap);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
ResFindGCPixmaps (pointer value, XID id, pointer cdata)
|
||||||
|
{
|
||||||
|
unsigned long *bytes = (unsigned long *)cdata;
|
||||||
|
GCPtr pGC = (GCPtr)value;
|
||||||
|
|
||||||
|
if (pGC->stipple != NULL)
|
||||||
|
*bytes += ResGetApproxPixmapBytes(pGC->stipple);
|
||||||
|
|
||||||
|
if (pGC->tile.pixmap != NULL && !pGC->tileIsPixel)
|
||||||
|
*bytes += ResGetApproxPixmapBytes(pGC->tile.pixmap);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
@ -218,6 +262,24 @@ ProcXResQueryClientPixmapBytes (ClientPtr client)
|
||||||
FindClientResourcesByType(clients[clientID], RT_PIXMAP, ResFindPixmaps,
|
FindClientResourcesByType(clients[clientID], RT_PIXMAP, ResFindPixmaps,
|
||||||
(pointer)(&bytes));
|
(pointer)(&bytes));
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Make sure win background pixmaps also held to account.
|
||||||
|
*/
|
||||||
|
FindClientResourcesByType(clients[clientID], RT_WINDOW,
|
||||||
|
ResFindWindowPixmaps,
|
||||||
|
(pointer)(&bytes));
|
||||||
|
|
||||||
|
/*
|
||||||
|
* GC Tile & Stipple pixmaps too.
|
||||||
|
*/
|
||||||
|
FindClientResourcesByType(clients[clientID], RT_GC,
|
||||||
|
ResFindGCPixmaps,
|
||||||
|
(pointer)(&bytes));
|
||||||
|
|
||||||
|
#ifdef COMPOSITE
|
||||||
|
/* FIXME: include composite pixmaps too */
|
||||||
|
#endif
|
||||||
|
|
||||||
rep.type = X_Reply;
|
rep.type = X_Reply;
|
||||||
rep.sequenceNumber = client->sequence;
|
rep.sequenceNumber = client->sequence;
|
||||||
rep.length = 0;
|
rep.length = 0;
|
||||||
|
|
|
@ -25,7 +25,7 @@ dnl Process this file with autoconf to create configure.
|
||||||
AC_PREREQ(2.57)
|
AC_PREREQ(2.57)
|
||||||
dnl This is the not the Xorg version number, it's the server version number.
|
dnl This is the not the Xorg version number, it's the server version number.
|
||||||
dnl Yes, that's weird.
|
dnl Yes, that's weird.
|
||||||
AC_INIT([xorg-server], 1.1.99.2, [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], xorg-server)
|
AC_INIT([xorg-server], 1.1.99.3, [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], xorg-server)
|
||||||
AC_CONFIG_SRCDIR([Makefile.am])
|
AC_CONFIG_SRCDIR([Makefile.am])
|
||||||
AM_INIT_AUTOMAKE([dist-bzip2 foreign])
|
AM_INIT_AUTOMAKE([dist-bzip2 foreign])
|
||||||
AM_MAINTAINER_MODE
|
AM_MAINTAINER_MODE
|
||||||
|
|
|
@ -54,7 +54,6 @@ EXTRA_DIST = \
|
||||||
darwinKeyboard.c \
|
darwinKeyboard.c \
|
||||||
darwinKeyboard.h \
|
darwinKeyboard.h \
|
||||||
darwinXinput.c \
|
darwinXinput.c \
|
||||||
iokit/.cvsignore \
|
|
||||||
iokit/xfIOKit.c \
|
iokit/xfIOKit.c \
|
||||||
iokit/xfIOKitCursor.c \
|
iokit/xfIOKitCursor.c \
|
||||||
iokit/xfIOKit.h \
|
iokit/xfIOKit.h \
|
||||||
|
@ -66,11 +65,8 @@ EXTRA_DIST = \
|
||||||
quartz/cr/crFrame.m \
|
quartz/cr/crFrame.m \
|
||||||
quartz/cr/cr.h \
|
quartz/cr/cr.h \
|
||||||
quartz/cr/crScreen.m \
|
quartz/cr/crScreen.m \
|
||||||
quartz/cr/.cvsignore \
|
|
||||||
quartz/cr/XView.h \
|
quartz/cr/XView.h \
|
||||||
quartz/cr/XView.m \
|
quartz/cr/XView.m \
|
||||||
quartz/.cvsignore \
|
|
||||||
quartz/fullscreen/.cvsignore \
|
|
||||||
quartz/fullscreen/fullscreen.c \
|
quartz/fullscreen/fullscreen.c \
|
||||||
quartz/fullscreen/quartzCursor.c \
|
quartz/fullscreen/quartzCursor.c \
|
||||||
quartz/fullscreen/quartzCursor.h \
|
quartz/fullscreen/quartzCursor.h \
|
||||||
|
@ -98,7 +94,6 @@ EXTRA_DIST = \
|
||||||
quartz/XDarwinStartup.c \
|
quartz/XDarwinStartup.c \
|
||||||
quartz/XDarwinStartup.man \
|
quartz/XDarwinStartup.man \
|
||||||
quartz/xpr/appledri.c \
|
quartz/xpr/appledri.c \
|
||||||
quartz/xpr/.cvsignore \
|
|
||||||
quartz/xpr/dri.c \
|
quartz/xpr/dri.c \
|
||||||
quartz/xpr/dri.h \
|
quartz/xpr/dri.h \
|
||||||
quartz/xpr/dristruct.h \
|
quartz/xpr/dristruct.h \
|
||||||
|
|
|
@ -527,15 +527,9 @@ hostx_screen_init (int width, int height, int buffer_height)
|
||||||
|
|
||||||
/* Ask the WM to keep our size static */
|
/* Ask the WM to keep our size static */
|
||||||
size_hints = XAllocSizeHints();
|
size_hints = XAllocSizeHints();
|
||||||
#if 0
|
|
||||||
size_hints->max_width = size_hints->min_width = width;
|
size_hints->max_width = size_hints->min_width = width;
|
||||||
size_hints->max_height = size_hints->min_height = height;
|
size_hints->max_height = size_hints->min_height = height;
|
||||||
size_hints->flags = PMinSize|PMaxSize;
|
size_hints->flags = PMinSize|PMaxSize;
|
||||||
#else
|
|
||||||
size_hints->min_width = 100;
|
|
||||||
size_hints->min_height = 100;
|
|
||||||
size_hints->flags = PMinSize;
|
|
||||||
#endif
|
|
||||||
XSetWMNormalHints(HostX.dpy, HostX.win, size_hints);
|
XSetWMNormalHints(HostX.dpy, HostX.win, size_hints);
|
||||||
XFree(size_hints);
|
XFree(size_hints);
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,6 @@ XORG_LIBS = \
|
||||||
libosandcommon.la \
|
libosandcommon.la \
|
||||||
rac/librac.a \
|
rac/librac.a \
|
||||||
parser/libxf86config.a \
|
parser/libxf86config.a \
|
||||||
dummylib/libdummy.a \
|
|
||||||
dixmods/libdixmods.la \
|
dixmods/libdixmods.la \
|
||||||
@XORG_LIBS@
|
@XORG_LIBS@
|
||||||
|
|
||||||
|
|
|
@ -602,6 +602,9 @@ the keymap for a mapping to the
|
||||||
.B Terminate
|
.B Terminate
|
||||||
action and, if found, use XKEYBOARD for processing actions, otherwise
|
action and, if found, use XKEYBOARD for processing actions, otherwise
|
||||||
the builtin handler will be used.
|
the builtin handler will be used.
|
||||||
|
.TP 7
|
||||||
|
.BI "Option \*qAIGLX\*q \*q" boolean \*q
|
||||||
|
enable or disable AIGLX. AIGLX is enabled by default.
|
||||||
.SH MODULE SECTION
|
.SH MODULE SECTION
|
||||||
The
|
The
|
||||||
.B Module
|
.B Module
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# libdummy-nonserver.a contains additional routines normally found in the
|
# libdummy-nonserver.a contains additional routines normally found in the
|
||||||
# server for use in building the utilities like scanpci & the config tools
|
# server for use in building the utilities like scanpci & the config tools
|
||||||
|
|
||||||
noinst_LIBRARIES = libdummy.a libdummy-nonserver.a
|
noinst_LIBRARIES = libdummy-nonserver.a
|
||||||
|
|
||||||
INCLUDES = $(XORG_INCS)
|
INCLUDES = $(XORG_INCS)
|
||||||
|
|
||||||
|
@ -12,15 +12,6 @@ if NEED_STRLCAT
|
||||||
STRL_SRCS = $(top_srcdir)/os/strlcat.c $(top_srcdir)/os/strlcpy.c
|
STRL_SRCS = $(top_srcdir)/os/strlcat.c $(top_srcdir)/os/strlcpy.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
libdummy_a_SOURCES = getvalidbios.c getemptypci.c \
|
|
||||||
pcitestmulti.c xf86allocscripi.c \
|
|
||||||
xf86addrestolist.c xf86drvmsg.c xf86drvmsgverb.c \
|
|
||||||
xf86getverb.c \
|
|
||||||
xf86opt.c xf86screens.c xf86servisinit.c xf86verbose.c \
|
|
||||||
#xf86errorf.c xf86errorfverb.c xf86msg.c xf86msgverb.c \
|
|
||||||
#logvwrite.c verrorf.c xf86info.c xalloc.c fatalerror.c \
|
|
||||||
#$(srcdir)/../os-support/shared/sigiostubs.c
|
|
||||||
|
|
||||||
libdummy_nonserver_a_SOURCES = \
|
libdummy_nonserver_a_SOURCES = \
|
||||||
fatalerror.c \
|
fatalerror.c \
|
||||||
getvalidbios.c \
|
getvalidbios.c \
|
||||||
|
|
|
@ -25,4 +25,4 @@ exa.$(DRIVER_MAN_SUFFIX): exa.man
|
||||||
-rm -f exa.$(DRIVER_MAN_SUFFIX)
|
-rm -f exa.$(DRIVER_MAN_SUFFIX)
|
||||||
$(LN_S) exa.man exa.$(DRIVER_MAN_SUFFIX)
|
$(LN_S) exa.man exa.$(DRIVER_MAN_SUFFIX)
|
||||||
|
|
||||||
EXTRA_DIST = exa.man.pre README
|
EXTRA_DIST = exa.man.pre
|
||||||
|
|
|
@ -30,4 +30,5 @@ libloader_a_SOURCES = \
|
||||||
fontsym.c \
|
fontsym.c \
|
||||||
misym.c \
|
misym.c \
|
||||||
xf86sym.c \
|
xf86sym.c \
|
||||||
|
sym.h \
|
||||||
$(SPARC_SOURCES)
|
$(SPARC_SOURCES)
|
||||||
|
|
|
@ -17,7 +17,6 @@ dist_xpc_DATA = \
|
||||||
LubalinGraph-Book.pmf \
|
LubalinGraph-Book.pmf \
|
||||||
LubalinGraph-DemiOblique.pmf \
|
LubalinGraph-DemiOblique.pmf \
|
||||||
LubalinGraph-Demi.pmf \
|
LubalinGraph-Demi.pmf \
|
||||||
NewCenturySchlbk-BoldItalic.pmf \
|
|
||||||
NewCenturySchlbk-Bold.pmf \
|
NewCenturySchlbk-Bold.pmf \
|
||||||
NewCenturySchlbk-Italic.pmf \
|
NewCenturySchlbk-Italic.pmf \
|
||||||
NewCenturySchlbk-Roman.pmf \
|
NewCenturySchlbk-Roman.pmf \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user