Bug 244960

Summary: emulators/dosbox: enable mouse locking with X.org newer than 1.20
Product: Ports & Packages Reporter: Tobias Rehbein <tobias.rehbein>
Component: Individual Port(s)Assignee: Fernando ApesteguĂ­a <fernape>
Status: Closed FIXED    
Severity: Affects Only Me CC: fernape, knyght
Priority: --- Flags: knyght: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
svn diff none

Description Tobias Rehbein 2020-03-21 19:33:24 UTC
Created attachment 212589 [details]
svn diff

With newer X.org version it was impossible to lock the mouse in a windowed dosbox. This has been discussed on vogons.org[1] and was fixed in dosbox for Linux. I have verified that the same workaround fixes in FreeBSD. The attached patch enables the workaround for FreeBSD.

[1]: https://www.vogons.org/viewtopic.php?f=31&t=62703

* poudriere testport: ok
Comment 1 Tom Carrick 2020-03-22 16:56:11 UTC
I looked through the patch and the Vogons topic, it looks good to me. It would be better if they fix this upstream but releases are sporadic enough that this is worth adding until that happens.
Comment 2 commit-hook freebsd_committer freebsd_triage 2020-03-24 11:22:17 UTC
A commit references this bug:

Author: fernape
Date: Tue Mar 24 11:21:53 UTC 2020
New revision: 529043
URL: https://svnweb.freebsd.org/changeset/ports/529043

Log:
  emulators/dosbox: enable mouse locking with X.org newer than 1.20

  References: https://www.vogons.org/viewtopic.php?f=31&t=62703

  PR:     244960
  Submitted by:   tobias.rehbein@web.de
  Reviewed by:    knyght@gmail.com (maintainer)

Changes:
  head/emulators/dosbox/Makefile
  head/emulators/dosbox/files/patch-src_gui_sdlmain.cpp
Comment 3 Fernando ApesteguĂ­a freebsd_committer freebsd_triage 2020-03-24 11:35:00 UTC
Committed,

Thanks!