! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
[PATCH] Add a new option to hide mouse cursor
Status:
RESOLVED: MOVED
Severity:
enhancement
Product:
Xfce4-settings
Component:
Xfsettingsd

Comments

Description Andreas Müller 2012-11-07 22:35:24 CET
The patch series below adds an option at Mouse Settings to hide mouse pointer. This is done by adding an invisible cursor theme. To detect the pointer device currently active, XSettingsd catches Mouse-Move and Button-Press events and extends DevieceAdded/Removed. If the pointer device has changed and if the new pointer device has a different setting for hide-pointer, X is forced to change cursor theme to the invisible theme or the theme set in Mouse Settings. Intention of this patch is using XFCE with touchscreen devices without mouse pointer. If for these devices an external mouse is connected and used the pointer is displayed as usual. For all users not enabling this option, the behavior remains as before.


The following changes since commit 619944b4dfda51fcedd6e35c226ffc2f5ab6d547:

  l10n: Updated Chinese (Taiwan) (zh_TW) translation to 100% (2012-11-04 16:48:11 +0100)

are available in the git repository at:
  git://gitorious.org/xfce/xfce4-settings.git master

Andreas Müller (5):
      mouse settings dialog: add hide-cursor option
      add cursor-theme "xfce-invisible"
      XfcePointersHelper gets a pointer to XfceXSettingsHelper
      XfceXSettingsHelper gets a property "cursor-hide"
      pointers: detect a change of pointer used and set "cursor-hide" as found in xfconf
Comment 1 Andreas Müller 2012-11-14 21:07:28 CET
Created attachment 4728 
1. mouse settings dialog: add hide-cursor option
Comment 2 Andreas Müller 2012-11-14 21:08:15 CET
Created attachment 4729 
2. add cursor-theme "xfce-invisible
Comment 3 Andreas Müller 2012-11-14 21:09:20 CET
Created attachment 4730 
3. XfcePointersHelper gets a pointer to XfceXSettingsHelper
Comment 4 Andreas Müller 2012-11-14 21:10:05 CET
Created attachment 4731 
4. XfceXSettingsHelper gets a property "cursor-hide"
Comment 5 Andreas Müller 2012-11-14 21:10:57 CET
Created attachment 4732 
5. pointers: detect a change of pointer used and set
Comment 6 Andreas Müller 2012-12-21 00:32:59 CET
FWIW: I updated the changes:

* gtk2 option TouchscreenMode is automatically set. Apart other features the prelighting of buttons is not performed
* the option was renamed to 'Touchscreen pointer'

The following changes since commit 49cfef8593f95d2bac26bfb8f3894fcfa7fd9eef:

  l10n: Updated Portuguese (pt) translation to 100% (2012-12-20 16:54:47 +0100)

are available in the git repository at:
  git://gitorious.org/xfce/xfce4-settings.git touchscreen-pointer

Andreas Müller (5):
      add cursor-theme "xfce-invisible"
      mouse settings dialog: add touchscreen-pointer option
      XfcePointersHelper gets a pointer to XfceXSettingsHelper
      XfceXSettingsHelper gets a property "touchscreen-pointer"
      pointers: detect a change of pointer-device used and set "touchscreen-pointer" as found in xfconf

 Makefile.am                               |    1 +
 configure.ac.in                           |    2 +
 cursors/Makefile.am                       |  178 +++++++++++++
 cursors/index.theme                       |    3 +
 cursors/invisible                         |  Bin 0 -> 4160 bytes
 cursors/wait                              |  Bin 0 -> 126096 bytes
 dialogs/mouse-settings/main.c             |   56 ++++
 dialogs/mouse-settings/mouse-dialog.glade |   28 ++-
 xfsettingsd/main.c                        |    2 +-
 xfsettingsd/pointers.c                    |  392 ++++++++++++++++++++---------
 xfsettingsd/xsettings.c                   |  122 +++++++++-
 xfsettingsd/xsettings.xml                 |    1 +
 12 files changed, 667 insertions(+), 118 deletions(-)
 create mode 100644 cursors/Makefile.am
 create mode 100644 cursors/index.theme
 create mode 100644 cursors/invisible
 create mode 100644 cursors/wait
Comment 7 Andreas Müller 2014-05-07 11:27:57 CEST
Created attachment 5484 
5.pointers: detect a change of pointer used and set
Comment 8 Andreas Müller 2014-05-07 11:29:25 CEST
attach a new version of 5th patch to fix crash when no pointer device is connected.
reported by Cristian Prigoana when no
Comment 9 Ash Charles 2014-05-26 19:20:21 CEST
Created attachment 5496 
Updated version of 0001-add-cursor-theme-sfce-invisible.patch

Cursors patched into the install by 0001-add-cursor-theme-xfce-invisible.patch
are located in the source directory.  To install during an out-of-tree build,
we need to copy them from the source directory, not the current build
directory.
Comment 10 Ioan-Adrian Ratiu 2016-01-28 09:46:41 CET
Any ideas when these patches will be accepted into master?
Comment 11 Git Bot editbugs 2020-05-28 22:54:45 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/xfce4-settings/-/issues/13.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #9474

Reported by:
Andreas Müller
Reported on: 2012-11-07
Last modified on: 2020-05-28

People

Assignee:
Nick Schermer
CC List:
4 users

Version

Version:
4.11.0

Attachments

Additional information