summaryrefslogtreecommitdiffstats
path: root/xorg-xserver
diff options
context:
space:
mode:
authorTreeve Jelbert2016-03-12 09:52:10 +0100
committerTreeve Jelbert2016-03-12 09:52:10 +0100
commitcb46a9343c5dfad31bd0a1f2acc6e415b2d1c39d (patch)
tree5c2f13d4644faffcdf7a5ea7f2164f57fcb3add0 /xorg-xserver
parent9a75945095453ca4c92850bd5d244924e4404673 (diff)
xorg-server: => 1.18.2
Diffstat (limited to 'xorg-xserver')
-rw-r--r--xorg-xserver/xorg-server/Add-hybrid-full-size-empty-clip-mode-to-SetRootClip.patch138
-rwxr-xr-xxorg-xserver/xorg-server/DETAILS4
-rw-r--r--xorg-xserver/xorg-server/HISTORY6
-rwxr-xr-xxorg-xserver/xorg-server/PRE_BUILD4
-rw-r--r--xorg-xserver/xorg-server/xwayland-fix-a-crash-on-output-removal.patch12
5 files changed, 9 insertions, 155 deletions
diff --git a/xorg-xserver/xorg-server/Add-hybrid-full-size-empty-clip-mode-to-SetRootClip.patch b/xorg-xserver/xorg-server/Add-hybrid-full-size-empty-clip-mode-to-SetRootClip.patch
deleted file mode 100644
index 8c3974816a..0000000000
--- a/xorg-xserver/xorg-server/Add-hybrid-full-size-empty-clip-mode-to-SetRootClip.patch
+++ /dev/null
@@ -1,138 +0,0 @@
-diff --git a/dix/window.c b/dix/window.c
-index 25d29ec..9726ade 100644
---- a/dix/window.c
-+++ b/dix/window.c
-@@ -3647,7 +3647,7 @@ WindowParentHasDeviceCursor(WindowPtr pWin,
- * all of the windows
- */
- void
--SetRootClip(ScreenPtr pScreen, Bool enable)
-+SetRootClip(ScreenPtr pScreen, int enable)
- {
- WindowPtr pWin = pScreen->root;
- WindowPtr pChild;
-@@ -3655,6 +3655,7 @@ SetRootClip(ScreenPtr pScreen, Bool enable)
- Bool anyMarked = FALSE;
- WindowPtr pLayerWin;
- BoxRec box;
-+ enum RootClipMode mode = enable;
-
- if (!pWin)
- return;
-@@ -3684,18 +3685,23 @@ SetRootClip(ScreenPtr pScreen, Bool enable)
- * that assume the root borderClip can't change well, normally
- * it doesn't...)
- */
-- if (enable) {
-+ if (mode != ROOT_SIZE_NONE) {
-+ pWin->drawable.width = pScreen->width;
-+ pWin->drawable.height = pScreen->height;
-+
- box.x1 = 0;
- box.y1 = 0;
- box.x2 = pScreen->width;
- box.y2 = pScreen->height;
-+
- RegionInit(&pWin->winSize, &box, 1);
- RegionInit(&pWin->borderSize, &box, 1);
-- if (WasViewable)
-- RegionReset(&pWin->borderClip, &box);
-- pWin->drawable.width = pScreen->width;
-- pWin->drawable.height = pScreen->height;
- RegionBreak(&pWin->clipList);
-+
-+ if (WasViewable && mode == ROOT_SIZE_SCREEN)
-+ RegionReset(&pWin->borderClip, &box);
-+ else
-+ RegionEmpty(&pWin->borderClip);
- }
- else {
- RegionEmpty(&pWin->borderClip);
-diff --git a/hw/xwayland/xwayland-glamor.c b/hw/xwayland/xwayland-glamor.c
-index 7f6fb9a..5557818 100644
---- a/hw/xwayland/xwayland-glamor.c
-+++ b/hw/xwayland/xwayland-glamor.c
-@@ -236,7 +236,7 @@ xwl_glamor_create_screen_resources(ScreenPtr screen)
- if (xwl_screen->rootless) {
- screen->devPrivate =
- fbCreatePixmap(screen, 0, 0, screen->rootDepth, 0);
-- SetRootClip(screen, FALSE);
-+ SetRootClip(screen, ROOT_SIZE_SCREEN_EMPTY);
- }
- else {
- screen->devPrivate =
-diff --git a/hw/xwayland/xwayland-output.c b/hw/xwayland/xwayland-output.c
-index e9ec190..f5c7194 100644
---- a/hw/xwayland/xwayland-output.c
-+++ b/hw/xwayland/xwayland-output.c
-@@ -164,8 +164,7 @@ update_screen_size(struct xwl_output *xwl_output, int width, int height)
- struct xwl_screen *xwl_screen = xwl_output->xwl_screen;
- double mmpd;
-
-- if (!xwl_screen->rootless)
-- SetRootClip(xwl_screen->screen, FALSE);
-+ SetRootClip(xwl_screen->screen, FALSE);
-
- xwl_screen->width = width;
- xwl_screen->height = height;
-@@ -181,6 +180,11 @@ update_screen_size(struct xwl_output *xwl_output, int width, int height)
- xwl_screen->screen->mmHeight = height * mmpd;
- }
-
-+ if (xwl_screen->rootless)
-+ SetRootClip(xwl_screen->screen, ROOT_SIZE_SCREEN_EMPTY);
-+ else
-+ SetRootClip(xwl_screen->screen, ROOT_SIZE_SCREEN);
-+
- if (xwl_screen->screen->root) {
- xwl_screen->screen->root->drawable.width = width;
- xwl_screen->screen->root->drawable.height = height;
-@@ -188,9 +192,6 @@ update_screen_size(struct xwl_output *xwl_output, int width, int height)
- }
-
- update_desktop_dimensions();
--
-- if (!xwl_screen->rootless)
-- SetRootClip(xwl_screen->screen, TRUE);
- }
-
- static void
-diff --git a/hw/xwayland/xwayland-shm.c b/hw/xwayland/xwayland-shm.c
-index 7072be4..2fbe74d 100644
---- a/hw/xwayland/xwayland-shm.c
-+++ b/hw/xwayland/xwayland-shm.c
-@@ -282,7 +282,7 @@ xwl_shm_create_screen_resources(ScreenPtr screen)
- if (xwl_screen->rootless) {
- screen->devPrivate =
- fbCreatePixmap(screen, 0, 0, screen->rootDepth, 0);
-- SetRootClip(screen, FALSE);
-+ SetRootClip(screen, ROOT_SIZE_SCREEN_EMPTY);
- }
- else
- screen->devPrivate =
-diff --git a/include/window.h b/include/window.h
-index f13ed51..67c9f10 100644
---- a/include/window.h
-+++ b/include/window.h
-@@ -72,6 +72,12 @@ struct _Cursor;
- typedef struct _BackingStore *BackingStorePtr;
- typedef struct _Window *WindowPtr;
-
-+enum RootClipMode {
-+ ROOT_SIZE_NONE = 0, /**< resize the root window to 0x0 */
-+ ROOT_SIZE_SCREEN = 1, /**< resize the root window to fit screen */
-+ ROOT_SIZE_SCREEN_EMPTY = 2, /**< as above, but empty clip */
-+};
-+
- typedef int (*VisitWindowProcPtr) (WindowPtr pWin,
- void *data);
-
-@@ -221,7 +227,7 @@ extern _X_EXPORT RegionPtr CreateBoundingShape(WindowPtr /* pWin */ );
-
- extern _X_EXPORT RegionPtr CreateClipShape(WindowPtr /* pWin */ );
-
--extern _X_EXPORT void SetRootClip(ScreenPtr pScreen, Bool enable);
-+extern _X_EXPORT void SetRootClip(ScreenPtr pScreen, int enable);
- extern _X_EXPORT void PrintWindowTree(void);
- extern _X_EXPORT void PrintPassiveGrabs(void);
-
diff --git a/xorg-xserver/xorg-server/DETAILS b/xorg-xserver/xorg-server/DETAILS
index e0b753e92e..83e069a176 100755
--- a/xorg-xserver/xorg-server/DETAILS
+++ b/xorg-xserver/xorg-server/DETAILS
@@ -1,6 +1,6 @@
SPELL=xorg-server
- VERSION=1.18.1
- SOURCE_HASH=sha512:4b2db85fe4386329b3d20fc53848556ce8dedeb9553d610afc45962d477c8e7ea887abb6c27ba2701160d15ddff9a500bfaae6deff9cf62a80452c4b18278429
+ VERSION=1.18.2
+ SOURCE_HASH=sha512:c44a1b39150fff3ab673cb252d7b498c8c3bc5b3b2abfb6c358c64fadb9ef97789ac457d6acb8afaece29bbbe66399854fd2db13763cb40e7c63fb4237601da9
SOURCE=$SPELL-$VERSION.tar.bz2
# SOURCE_GPG="gurus.gpg:$SOURCE.sig:UPSTREAM_HASH"
SOURCE_URL[0]=http://xorg.freedesktop.org/releases/individual/xserver/$SOURCE
diff --git a/xorg-xserver/xorg-server/HISTORY b/xorg-xserver/xorg-server/HISTORY
index 9c3d83f6e1..4f6d884639 100644
--- a/xorg-xserver/xorg-server/HISTORY
+++ b/xorg-xserver/xorg-server/HISTORY
@@ -1,3 +1,9 @@
+2016-03-12 Treeve Jelbert <treeve@sourcemage.org>
+ * DETAILS: 1.18.2
+ * xwayland-fix-a-crash-on-output-removal.patch: deleted
+ * Add-hybrid-full-size-empty-clip-mode-to-SetRootClip.patch: deleted
+ * PRE_BUILD: no upstream patches
+
2016-03-02 Remko van der Vossen <wich@sourcemage.org>
* DEPENDS: don't force dbus dependency when it isn't needed
diff --git a/xorg-xserver/xorg-server/PRE_BUILD b/xorg-xserver/xorg-server/PRE_BUILD
index 98db5d4a6f..710034f1f2 100755
--- a/xorg-xserver/xorg-server/PRE_BUILD
+++ b/xorg-xserver/xorg-server/PRE_BUILD
@@ -2,6 +2,4 @@ default_pre_build &&
# required to build
glselect mesa &&
cd "$SOURCE_DIRECTORY" &&
-patch -p1 < $SPELL_DIRECTORY/gl_select.patch &&
-patch -p1 < $SPELL_DIRECTORY/xwayland-fix-a-crash-on-output-removal.patch &&
-patch -p1 < $SPELL_DIRECTORY/Add-hybrid-full-size-empty-clip-mode-to-SetRootClip.patch
+patch -p1 < $SPELL_DIRECTORY/gl_select.patch
diff --git a/xorg-xserver/xorg-server/xwayland-fix-a-crash-on-output-removal.patch b/xorg-xserver/xorg-server/xwayland-fix-a-crash-on-output-removal.patch
deleted file mode 100644
index 612189c13f..0000000000
--- a/xorg-xserver/xorg-server/xwayland-fix-a-crash-on-output-removal.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff --git a/hw/xwayland/xwayland-output.c b/hw/xwayland/xwayland-output.c
-index e9ec190..abb73ab 100644
---- a/hw/xwayland/xwayland-output.c
-+++ b/hw/xwayland/xwayland-output.c
-@@ -298,6 +298,7 @@ xwl_output_destroy(struct xwl_output *xwl_output)
-
- wl_output_destroy(xwl_output->output);
- xorg_list_del(&xwl_output->link);
-+ RRCrtcDestroy(xwl_output->randr_crtc);
- RROutputDestroy(xwl_output->randr_output);
-
- xorg_list_for_each_entry(it, &xwl_screen->output_list, link)