| 1 | Descriptionscip-debian debian dasher 5.0.0~beta~repack2-6 dasher/patches/nowayland#Description.: prefer x11 backend over Wayland |
| 2 | Dasher uses X11 primitives to read the cursor position. It does not |
| 3 | works with the Wayland backend. This patch aknowledges this fact and |
| 4 | hard-codes that x11 is preferred over Wayland, so when running under |
| 5 | a Wayland session, Dasher still works. However, even with this patch, |
| 6 | Direct Mode works only in x11 windows. |
| 7 | Authorscip-debian debian dasher 5.0.0~beta~repack2-6 dasher/patches/nowayland#Author.: Thibaut Paumard <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 8 | Originscip-debian debian dasher 5.0.0~beta~repack2-6 dasher/patches/nowayland#Origin.: vendor |
| 9 | Bugscip-debian debian dasher 5.0.0~beta~repack2-6 dasher/patches/nowayland#Bug.: https://github.com/dasher-project/dasher/issues/103 |
| 10 | Bug-Debianscip-debian debian dasher 5.0.0~beta~repack2-6 dasher/patches/nowayland#Bug-Debian.: https://bugs.debian.org/852699scip-debian-bts debian-bts . . 852699: |
| 11 | Last-Updatescip-debian debian dasher 5.0.0~beta~repack2-6 dasher/patches/nowayland#Last-Update.: 2018-03-21 |
| 12 | --- |
| 13 | This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ |
| 14 | --- a/Src/main.ccscip-debian debian dasher 5.0.0~beta~repack2-6 dasher/upstream/`Src/main.cc`: |
| 15 | +++ b/Src/main.ccscip-debian debian dasher 5.0.0~beta~repack2-6 dasher/upstream/`Src/main.cc`: |
| 16 | @@ -147,6 +147,12 @@ |
| 17 | bind_textdomain_codeset(PACKAGE, "UTF-8"); |
| 18 | textdomain(PACKAGE); |
| 19 | |
| 20 | + // Disallow the wayland backend as Dasher does not work well, if at |
| 21 | + // all, with this backend. TODO: check which other backends are |
| 22 | + // needed for other platforms than Linux. This line needs to come |
| 23 | + // before Gdk is initialized which occurs in g_option_context_parse(). |
| 24 | + gdk_set_allowed_backends ("x11"); |
| 25 | + |
| 26 | // gchar *szOptionAppstyle = NULL; |
| 27 | |
| 28 | SCommandLine sCommandLine; |