Page 1 of 1

How do you disable ALT + Mouse Drag to move windows?

Posted: Sun Jan 08, 2023 4:44 am
by bob93

it interferes with the shortcuts and modifiers of design software such as librecad. Librecad doesn't allow to change shortcuts, so I need to change the window manager settings.

Possible?

Thanks


Re: How do you disable ALT + Mouse Drag to move windows?

Posted: Sun Jan 08, 2023 6:32 am
by MochiMoppel
bob93 wrote: Sun Jan 08, 2023 4:44 am

it interferes with the shortcuts and modifiers of design software such as librecad. Librecad doesn't allow to change shortcuts, so I need to change the window manager settings.
Possible?

Nothing is impossible :lol:

Open the file /root/.jwm/jwmrc-personal with a text editor like Geany and put the line <MoveMode mask="CS"></MoveMode> just before the final </JWM> tag. Save the file and then in a console run jwm -restart
This will remap Alt+Drag to Ctrl+Shift+Drag . With mask="4" it would be remapped to WinKey+Drag.
I'm not sure how to disable it completely but mask="5" would be the highest valid number and - at least on my sytem - it seems to disable all possible key combinations.


Re: How do you disable ALT + Mouse Drag to move windows?

Posted: Wed Jun 21, 2023 9:46 am
by bob93
MochiMoppel wrote: Sun Jan 08, 2023 6:32 am
bob93 wrote: Sun Jan 08, 2023 4:44 am

it interferes with the shortcuts and modifiers of design software such as librecad. Librecad doesn't allow to change shortcuts, so I need to change the window manager settings.
Possible?

Nothing is impossible :lol:

Open the file /root/.jwm/jwmrc-personal with a text editor like Geany and put the line <MoveMode mask="CS"></MoveMode> just before the final </JWM> tag. Save the file and then in a console run jwm -restart
This will remap Alt+Drag to Ctrl+Shift+Drag . With mask="4" it would be remapped to WinKey+Drag.
I'm not sure how to disable it completely but mask="5" would be the highest valid number and - at least on my sytem - it seems to disable all possible key combinations.

I need to come back to this. It works, but it doesn't seem to be permanent, as in the line is not there after I restart the system. How do I make it permanent?


Re: How do you disable ALT + Mouse Drag to move windows?

Posted: Wed Jun 21, 2023 4:07 pm
by bigpup

Do you have a save file or folder?
I assume you do.
Did you update it, saving the change?


Re: How do you disable ALT + Mouse Drag to move windows?

Posted: Thu Jun 22, 2023 1:54 am
by bob93

hmmm, I restarted the system and it's there. I'm not sure what caused the line to disappear, probably other settings I have messed up with. I'll let you know if it disappears again. This time though I set mask to 4, because ctrl+shift+drag is needed by inkscape. So far so good

This is a hard drive install by the way. The savefile is for live puppies, correct?


Re: How do you disable ALT + Mouse Drag to move windows?

Posted: Wed Jun 28, 2023 2:41 pm
by bob93

Line disappeared today. What I did today was disable desktop compositor, pressed Ctrl+Alt+Backspace a few times, (as usual) used a gif recorder that uses the shortcut Ctrl+Alt+R, and used Inkscape, which has several Ctrl/Alt/Shift shortcuts and modifiers. I don't know if any of those things caused the jwmrc-personal file to reset. I will have to get in the habit of checking every 5 minutes whether alt+mouse drag moves windows


Re: How do you disable ALT + Mouse Drag to move windows?

Posted: Wed Jun 28, 2023 3:09 pm
by rockedge
bob93 wrote:

The savefile is for live puppies, correct?

that depends on the type of installation. Any Puppy Linux "frugal" install will use either a save folder or a save file for persistence storage according to the type of format the partition has or preference. Only the "full" install, which is similar to what method the usual Linux OS's use and is not recommended for Puppy Linux, does not use either a save folder of save file. The "full" install in fact limits the full potential of Puppy Linux and what we call "frugal" is not in any way a lesser installation, but actually provides the platform for Puppy Linux to perform at it's fullest capabilities.

I personally use 95% of the time a save folder.


Re: How do you disable ALT + Mouse Drag to move windows?

Posted: Wed Jun 28, 2023 4:41 pm
by Grey
bob93 wrote: Sun Jan 08, 2023 4:44 am

it interferes with the shortcuts and modifiers of design software such as librecad.

Take a look here. If it helps, then add the page to your browser bookmarks.