Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-01-06 08:29:21

dscr
Member
Registered: 2022-01-05
Posts: 3

disable middle click close window

hi *

any one else have a problem with

>> middle click close window + touchpad

i guess this is realy usefull with mouse ( as it appear to be enabled by default )
but with a touch pad =[  im just unintentionaly closeing windows and losing work sad

as one link below has working info on how to compleatly disable middle button
im using that for now

but i would like to continue to paste & other wise use middle click

as long as i can stop / disable "middle click close window" functionality

it appears was added in a patch mentioned in a bug report

this comment https://bugzilla.xfce.org/show_bug.cgi?id=8096#c12

Simon Dedman wrote:

anyone looking for this only cares about this info (now it's been patched - thanks guys!):

Right click on Panel > Panel preferences > Items > Window Buttons > Settings > Behaviour : Middle Click Action

this has no decernable effect   as middle click still closes windows


has any one else managed to change Middle Click Action via the menu options ? ( eg is it not working for me or genraly)


can any one offer any relevent info / surgestions that might shed light on the issue ?


note about HW im having aproblem with , it has touch screen & trackpad 
( i dont realy use touch screen , could *try* to disable that if there might be any benifit to doing so )


thanks!

research / related links

https://forum.xfce.org/viewtopic.php?id=6964 # [Solved] [ubuntu] How to disable middle click paste-browse in firefox?

https://bugzilla.xfce.org/attachment.cgi?id=4667 # panel.patch

https://bugzilla.xfce.org/show_bug.cgi?id=8096 # Middle click on task list item to close window (bug)

https://forum.xfce.org/viewtopic.php?id=7905 # Close tasks with middle button of the mouse


* this disables click entirely
http://www.humans-enabled.com/2019/03/h … ck-in.html

script.id.input.sh wrote:

# find input devices
pointers=$(xinput --list --name-only|egrep -i 'touchpad|mouse'|sed 's/\ /_/g'); \
echo;echo "Button Maps:";for i in $(echo "$pointers");do echo "$i"|sed 's/_/\ /g'; \
xinput get-button-map "$(echo $i|sed 's/_/\ /g')";done;echo

# change seting (EG!)
xinput set-button-map 'PixArt Dell MS116 USB Optical Mouse' 1 0 3 4 5 6 7


https://wiki.archlinux.org/title/Libinput

Offline

#2 2022-01-06 09:06:48

KBar
Member
Registered: 2021-11-05
Posts: 189

Re: disable middle click close window

There are three middle clicks: 1) on title bar — lowers the current window (hard-coded); 2) on tasklist — by default, closes windows; 3) on any text input area — yanks from X clipboard.

Which one of the first two are you talking about? As you already mentioned, for tasklist items changing this from Window Buttons' setting dialog should suffice.

For the first one, this is controlled by your window manager. Care to tell us which window manager you're running?

In your first post you said that you run centOS. Which version?
What is the output of the following?

xfconf-query --channel xfce4-session --property /sessions/Failsafe/Client0_Command

Offline

#3 2022-01-06 18:32:27

dscr
Member
Registered: 2022-01-05
Posts: 3

Re: disable middle click close window

hi kbar
thanks for the (much needed) clarification


$ xfconf-query --channel xfce4-session --property /sessions/Failsafe/Client0_Command
Value is an array with 1 items:

xfwm4

curently im on `Mint 20.2 Uma` xfce (obviously) ... but somtimes other debian derivatives to test things , and hopfuly/eventually tcl !


... the centos+guix link was just a passing (could this( guix.pkgs xfce) work) thaught , and i found or perhaps rediscovered that link ftr!!
     nix/guix (reproducible build's)  seems to be usefull/relevent considering it appears some defaults are "hard-coded" at compile

presumably debian/ubuntu/mint have made some modifications to xfce


WRT middle click  , when not disabled

- window title bar middle click - curently closes windows

after
disableing and re-enabling  middle click
middle clicking now lowers the current window ,...
perhaps i was confuseing this with (now disabled) tasklist closing windows  / and other apps closing tabs

   eather way stuff was (frustratingly) closing unexpectedly when trying to select with left click !!

-  (xfce-terminal) tab middle click - *can be disabled in prefrences menu*
   edit>prefrences>advanced : uncheck 'use middle click to close tabs' option xD

-- ftr --

- (xed) tab middle click   - curently closes tab =[
  ...

-  (firefox) tab middle click - curently closes tabs   =[

  ... https://bugzilla.mozilla.org/show_bug.cgi?id=1439247 #  Request an option to disable "close tab with middle click" feature
      https://phabricator.services.mozilla.com/D134251 #  Provide a Middlemouse.closeTab option
      " Phabricator Automation
    Updated • 18 days ago " ... look's close to a sloution after 4 year open bug =0

Offline

#4 2022-01-07 04:02:19

KBar
Member
Registered: 2021-11-05
Posts: 189

Re: disable middle click close window

dscr wrote:

WRT middle click  , when not disabled

- window title bar middle click - curently closes windows

after
disableing and re-enabling  middle click
middle clicking now lowers the current window ,...
perhaps i was confuseing this with (now disabled) tasklist closing windows  / and other apps closing tabs

That is the intended behavior and I believe it's hard-coded.

eather way stuff was (frustratingly) closing unexpectedly when trying to select with left click !!

-  (xfce-terminal) tab middle click - *can be disabled in prefrences menu*
   edit>prefrences>advanced : uncheck 'use middle click to close tabs' option xD

-- ftr --

- (xed) tab middle click   - curently closes tab =[
  ...

-  (firefox) tab middle click - curently closes tabs   =[

Most of these are set per app. For tabbed windows, the standard behavior in GTK apps is close tab. Some apps do allow disabling this behavior off, some don't.

Offline

Board footer

Powered by FluxBB