Skip to content

Commit

Permalink
#1215: add fix pointer limits patch
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@14584 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Dec 23, 2016
1 parent 4df7d84 commit 6added0
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
6 changes: 6 additions & 0 deletions debian/xserver-xorg-video-dummy/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
xserver-xorg-video-dummy (1:0.3.8-5) UNRELEASED; urgency=low

* add fix pointer limits patch

-- Antoine Martin <[email protected]> Fri, 23 Dec 2016 12:15:18 +0700

xserver-xorg-video-dummy (1:0.3.8-4) UNRELEASED; urgency=low

* packaging file path fix
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
--- xf86-video-dummy-0.3.6/src/dummy_driver.c 2014-11-05 19:24:02.668656601 +0700
+++ xf86-video-dummy-0.3.6.new/src/dummy_driver.c 2014-11-05 19:37:53.076061853 +0700
@@ -55,6 +55,9 @@
#include <X11/extensions/xf86dgaproto.h>
#endif

+/* Needed for fixing pointer limits on resize */
+#include "inputstr.h"
+
/* Mandatory functions */
static const OptionInfoRec * DUMMYAvailableOptions(int chipid, int busid);
static void DUMMYIdentify(int flags);
@@ -713,6 +716,26 @@
RRTellChanged(pScrn->pScreen);
}
#endif
+ //ensure the screen dimensions are also updated:
+ pScrn->pScreen->width = mode->HDisplay;
+ pScrn->pScreen->height = mode->VDisplay;
+ pScrn->virtualX = mode->HDisplay;
+ pScrn->virtualY = mode->VDisplay;
+ pScrn->frameX1 = mode->HDisplay;
+ pScrn->frameY1 = mode->VDisplay;
+
+ //ensure the pointer uses the new limits too:
+ DeviceIntPtr pDev;
+ SpritePtr pSprite;
+ for (pDev = inputInfo.devices; pDev; pDev = pDev->next) {
+ if (pDev->spriteInfo!=NULL && pDev->spriteInfo->sprite!=NULL) {
+ pSprite = pDev->spriteInfo->sprite;
+ pSprite->hotLimits.x2 = mode->HDisplay;
+ pSprite->hotLimits.y2 = mode->VDisplay;
+ pSprite->physLimits.x2 = mode->HDisplay;
+ pSprite->physLimits.y2 = mode->VDisplay;
+ }
+ }
return TRUE;
}

1 change: 1 addition & 0 deletions debian/xserver-xorg-video-dummy/patches/series
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
0002-Constant-DPI.patch
0003-fix-pointer-limits.patch
0005-support-for-30-bit-depth-in-dummy-driver.patch

0 comments on commit 6added0

Please sign in to comment.