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

New to Puppy and have questions? Start here

Moderator: Forum moderators

Post Reply
bob93
Posts: 53
Joined: Fri Nov 25, 2022 8:29 am
Location: Fossapup64 9.5
Has thanked: 21 times
Been thanked: 1 time

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

Post 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

Fossapup64 9.5

User avatar
MochiMoppel
Posts: 1239
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 21 times
Been thanked: 439 times

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

Post 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.

bob93
Posts: 53
Joined: Fri Nov 25, 2022 8:29 am
Location: Fossapup64 9.5
Has thanked: 21 times
Been thanked: 1 time

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

Post 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?

Fossapup64 9.5

User avatar
bigpup
Moderator
Posts: 6999
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 913 times
Been thanked: 1528 times

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

Post by bigpup »

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

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

bob93
Posts: 53
Joined: Fri Nov 25, 2022 8:29 am
Location: Fossapup64 9.5
Has thanked: 21 times
Been thanked: 1 time

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

Post 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?

Fossapup64 9.5

bob93
Posts: 53
Joined: Fri Nov 25, 2022 8:29 am
Location: Fossapup64 9.5
Has thanked: 21 times
Been thanked: 1 time

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

Post 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

Fossapup64 9.5

User avatar
rockedge
Site Admin
Posts: 6551
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2757 times
Been thanked: 2628 times
Contact:

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

Post 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.

User avatar
Grey
Posts: 2024
Joined: Wed Jul 22, 2020 12:33 am
Location: Russia
Has thanked: 76 times
Been thanked: 376 times

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

Post 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.

Fossapup OS, Ryzen 5 3600 CPU, 64 GB RAM, GeForce GTX 1050 Ti 4 GB, Sound Blaster Audigy Rx with amplifier + Yamaha speakers for loud sound, USB Sound Blaster X-Fi Surround 5.1 Pro V3 + headphones for quiet sound.

Post Reply

Return to “Beginners Help”