~mil/sxmo-devel

lisgd: Fix landscape gestures v1 APPLIED

Stacy Harper: 1
 Fix landscape gestures

 1 files changed, 7 insertions(+), 2 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~mil/sxmo-devel/patches/21920/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH lisgd] Fix landscape gestures Export this patch

Swap height and width values on landscape mode to compute correctly
gestures.
Signed-off-by: Stacy Harper <contact@stacyharper.net>
---
 lisgd.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/lisgd.c b/lisgd.c
index e4f269a..124f298 100644
--- a/lisgd.c
+++ b/lisgd.c
@@ -542,8 +542,13 @@ main(int argc, char *argv[])
	if (!(dpy = XOpenDisplay(0)))
		die("cannot open display");
	screen = DefaultScreen(dpy);
	screenwidth = DisplayWidth(dpy, screen);
	screenheight = DisplayHeight(dpy, screen);
	if (0 == orientation % 2) {
		screenwidth = DisplayWidth(dpy, screen);
		screenheight = DisplayHeight(dpy, screen);
	} else {
		screenwidth = DisplayHeight(dpy, screen);
		screenheight = DisplayWidth(dpy, screen);
	}

	// E.g. no gestures passed on CLI - used gestures defined in config.def.h
	if (gestsarrlen == 0) {
-- 
2.31.1