![]() Registered Member ![]()
|
In KDE4, I disabled the much-hated "drag and drop" by patching kcontrol/input/mouse.cpp in kde-workspace-4.11.n.tar.xz (setting dragStartDist to 1000 pixels).
So far, I haven't been able to locate where this parameters is set in KDE5 (the whole structure has obviously changed quite a bit), and this has already caused me massive problems. Can someone point out what file contains this information now? Thank you in advance. |
![]() Registered Member ![]()
|
Why patch the code?
Just change the corresponding value in the config file, ~/.config/kdeglobals. To set the system-wide default, do it in /etc/xdg/kdeglobals. |
![]() Registered Member ![]()
|
I guess the biggest reason is that the method you describe simply doesn't work - any value above 20 for StartDragDist (as it is called now), is simply truncated to 20 (FAR too low for me). |
![]() Registered Member ![]()
|
Well, I didn't know that. Maybe file a bug report/feature request at http://bugs.kde.org/ then? (either to increase the maximum StartDragDist, or to add an option to disable drag completely) The code is in plasma-desktop now though, kcms/input/mouse.cpp is probably what you are looking for. Though on a quick look, I see nothing that "truncates" the value from the config file in there. The config module has a maximum of 20 though, so if you set it higher, the settings would show 20 I suppose. If it's truncated somewhere else (when applying the settings on login), patching the config module won't help either I think... |
![]() Registered Member ![]()
|
The minimum and maximum values are in plasma-desktop-5.7.5/kcms/input/mouse.cpp Just changed these two lines: dragStartDist = new KIntNumInput(20, advancedTab); dragStartDist->setRange(1, 20, 1); Then recompiled, and it works (or I should say drag and drop now "doesn't work") perfectly. :) |
Registered users: Baidu [Spider], Bing [Bot], Google [Bot]