Re: A way to disable the long-left mouse click shortcut to enter "Edit Mode" / modifying widgets?

2022-08-16 Thread Koeame
I have submitted the bug report to the bugzilla under the "plasmashell"
category (hoping that's appropriate). Thank you!!

On Tue, Aug 16, 2022 at 5:13 PM René J.V. Bertin 
wrote:

> On Tuesday August 16 2022 15:30:23 Koeame wrote:
>
> >I probably might figure it out later, because I'm very exhausted right
> now,
> >but if I don't, could you help me navigate where to report a bug? Thank
> >you.
>
> There's no hurry, but I forgot to mention this is done on bugs.kde.org .
> I think it's pretty straightforward but you can always ask if you get stuck.
>
> R.
>
>


Re: A way to disable the long-left mouse click shortcut to enter "Edit Mode" / modifying widgets?

2022-08-16 Thread Koeame
>
> If going to another DE solves the issue for you, please do consider filing
> a bug report against plasma-desktop (if there isn't one already).
>

I probably might figure it out later, because I'm very exhausted right now,
but if I don't, could you help me navigate where to report a bug? Thank
you.

On Tue, Aug 16, 2022 at 3:07 PM René J.V. Bertin 
wrote:

> On Tuesday August 16 2022 14:12:29 Koeame wrote:
>
> >May as well try to do this, and it's going slow for me considering I'm
> >doing other things, but I'm getting through it. Thank you for all your
> help
> >into seeing this btw I really appreciate it.
>
> You're welcome. This is the sort of thing that could drive me crazy too
>
> If going to another DE solves the issue for you, please do consider filing
> a bug report against plasma-desktop (if there isn't one already). The devs
> should know that their immature feature drives people away from the Plasma
> desktop and that they could at least implement a very basic way to disable
> or configure it (meaning editing a configuration file by hand, if writing a
> proper GUI is not feasible for now).
>
> I forgot to mention: in order to make KDE apps look and behave as much as
> possible as if they were running on a Plasma desktop session you will
> probably have to set 2 environment variables at the desktop shell level (in
> the "global" section of your ~/.bashrc should be fine):
> KDE_FULL_SESSION=true
> KDE_SESSION_VERSION=5
>
> If you also chose to use KWin and Dolphin instead of the default window
> manager and file explorer apps for that DE you will hardly notice the
> difference except in the look & feel of the panels, desktop icons etc.
>
> R.
>
> >
> >On Tue, Aug 16, 2022 at 11:54 AM René J.V. Bertin 
> >wrote:
> >
> >> On Tuesday August 16 2022 11:35:44 Koeame wrote:
> >> >that package was, but it was plasma-touch related), but that did not
> work.
> >> >What if I just uninstalled plasma5-workspace as a package? lol
> >>
> >> That will probably also uninstall most of what gives you the Plasma DE
> >> (but I can be wrong).
> >>
> >> There's an alternative KDE desktop shell which is purely widget-based
> (no
> >> QML like Plasma uses primarily nowadays I think). You can run that as an
> >> alternative to plasmashell. Last time I checked it probably didn't have
> an
> >> "edit mode" at all. So there's that solution. You may have to build it
> >> yourself though, if no one made a PPA for it.
> >>
> >> If the issue is limited to the desktop it would be easier just to log in
> >> to a different DE. It may not look as fancy, but you could actually find
> >> your computer more responsive because Plasma isn't exactly low-resource
> >> anymore (as far as I can tell).
> >>
> >> R
> >>
>
>


Re: A way to disable the long-left mouse click shortcut to enter "Edit Mode" / modifying widgets?

2022-08-16 Thread Koeame
>
> If the issue is limited to the desktop it would be easier just to log in
> to a different DE. It may not look as fancy, but you could actually find
> your computer more responsive because Plasma isn't exactly low-resource
> anymore (as far as I can tell).
>

May as well try to do this, and it's going slow for me considering I'm
doing other things, but I'm getting through it. Thank you for all your help
into seeing this btw I really appreciate it.

On Tue, Aug 16, 2022 at 11:54 AM René J.V. Bertin 
wrote:

> On Tuesday August 16 2022 11:35:44 Koeame wrote:
> >that package was, but it was plasma-touch related), but that did not work.
> >What if I just uninstalled plasma5-workspace as a package? lol
>
> That will probably also uninstall most of what gives you the Plasma DE
> (but I can be wrong).
>
> There's an alternative KDE desktop shell which is purely widget-based (no
> QML like Plasma uses primarily nowadays I think). You can run that as an
> alternative to plasmashell. Last time I checked it probably didn't have an
> "edit mode" at all. So there's that solution. You may have to build it
> yourself though, if no one made a PPA for it.
>
> If the issue is limited to the desktop it would be easier just to log in
> to a different DE. It may not look as fancy, but you could actually find
> your computer more responsive because Plasma isn't exactly low-resource
> anymore (as far as I can tell).
>
> R
>


Re: A way to disable the long-left mouse click shortcut to enter "Edit Mode" / modifying widgets?

2022-08-16 Thread Koeame
Okay I'm back sorry.

Rene:

> - your distro packages the touch-interface in an optional package.
> Uninstall that. Plasma should lose support for using your panel for its own
> features but you still have the device drivers installed so it should still
> work at the system level
> - set up another DE and use that instead of Plasma. Most environments
> allow changing the window manager so if you're fond of KWin and its widget
> styling you can still use that. And of course your KDE applications will
> continue to work.
>

I did #1 as asked before I found out plasma-workspace is a package that
existed, and I didn't get anywhere with this. I thought I've uninstalled a
package that seemed like it included the gesture (couldn't remember what
that package was, but it was plasma-touch related), but that did not work.
What if I just uninstalled plasma5-workspace as a package? lol

I'm doing #2 as I type.

Duncan:

> Meanwhile, I /think/ you should be able to trigger it too as I'm guessing
> it's not touch-specific (tho primarily targeted at touch).  Does a click-
> and-hold on the plasmashell desktop with your presumably regular (or at
> least not touch-device) mouse trigger edit mode?  I'm guessing it does.
>

It should. Every fresh install as far as I know with KDE Plasma included
(different distros like Manjaro, Void, Fedora, OpenSUSE), it is still very
much there.

On Tue, Aug 16, 2022 at 6:55 AM Duncan <1i5t5.dun...@cox.net> wrote:

> René J.V. Bertin posted on Tue, 16 Aug 2022 12:08:07 +0200 as excerpted:
>
> > On Tuesday August 16 2022 06:50:26 Duncan wrote:
> >
> >>But because it's a behavior clicking on the desktop itself, not
> >>something in kwin, etc, I'd say it's almost certainly coded in either
> >>plasma- workspace or plasma-desktop.
> >
> > Doesn't it happen in all applications?
>
> No.  It only happens (at least for me) when long-clicking on the desktop.
> Even long-clicking on a panel (which is of course plasmashell too) doesn't
> trigger it.  It has to be the desktop.
>
> I agree the OP made it seem to be in all apps and I'd have thought that if
> I hadn't reproduced it only on the desktop, here, but that's not what I'm
> seeing.  If it /is/ in all apps for him, wow, that *would* be a problem!
>
> Meanwhile, I /think/ you should be able to trigger it too as I'm guessing
> it's not touch-specific (tho primarily targeted at touch).  Does a click-
> and-hold on the plasmashell desktop with your presumably regular (or at
> least not touch-device) mouse trigger edit mode?  I'm guessing it does.
>
> --
> Duncan - List replies preferred.   No HTML msgs.
> "Every nonfree program has a lord, a master --
> and if you use the program, he is your master."  Richard Stallman
>
>


Re: A way to disable the long-left mouse click shortcut to enter "Edit Mode" / modifying widgets?

2022-08-16 Thread Koeame
Okay I'm back sorry.

- your distro packages the touch-interface in an optional package.
> Uninstall that. Plasma should lose support for using your panel for its own
> features but you still have the device drivers installed so it should still
> work at the system level
> - set up another DE and use that instead of Plasma. Most environments
> allow changing the window manager so if you're fond of KWin and its widget
> styling you can still use that. And of course your KDE applications will
> continue to work.
>

I did #1 as Rene asked before I found out plasma-workspace is a package
that existed, and I didn't get anywhere with this. I thought I've
uninstalled a package that seemed like it included the gesture (couldn't
remember what that package was, but it was plasma-touch related), but that
did not work. What if I just uninstalled plasma5-workspace as a package? lol

I'm doing #2 as I type.

Meanwhile, I /think/ you should be able to trigger it too as I'm guessing
> it's not touch-specific (tho primarily targeted at touch).  Does a click-
> and-hold on the plasmashell desktop with your presumably regular (or at
> least not touch-device) mouse trigger edit mode?  I'm guessing it does.
>

It should. Every fresh install as far as I know with KDE Plasma included
(different distros like Manjaro, Void, Fedora, OpenSUSE), it is still very
much there.

On Tue, Aug 16, 2022 at 6:55 AM Duncan <1i5t5.dun...@cox.net> wrote:

> René J.V. Bertin posted on Tue, 16 Aug 2022 12:08:07 +0200 as excerpted:
>
> > On Tuesday August 16 2022 06:50:26 Duncan wrote:
> >
> >>But because it's a behavior clicking on the desktop itself, not
> >>something in kwin, etc, I'd say it's almost certainly coded in either
> >>plasma- workspace or plasma-desktop.
> >
> > Doesn't it happen in all applications?
>
> No.  It only happens (at least for me) when long-clicking on the desktop.
> Even long-clicking on a panel (which is of course plasmashell too) doesn't
> trigger it.  It has to be the desktop.
>
> I agree the OP made it seem to be in all apps and I'd have thought that if
> I hadn't reproduced it only on the desktop, here, but that's not what I'm
> seeing.  If it /is/ in all apps for him, wow, that *would* be a problem!
>
> Meanwhile, I /think/ you should be able to trigger it too as I'm guessing
> it's not touch-specific (tho primarily targeted at touch).  Does a click-
> and-hold on the plasmashell desktop with your presumably regular (or at
> least not touch-device) mouse trigger edit mode?  I'm guessing it does.
>
> --
> Duncan - List replies preferred.   No HTML msgs.
> "Every nonfree program has a lord, a master --
> and if you use the program, he is your master."  Richard Stallman
>
>


Re: A way to disable the long-left mouse click shortcut to enter "Edit Mode" / modifying widgets?

2022-08-15 Thread Koeame
Thank you very much Rene. l'll go and do as you suggested to see if that
works. My sleep schedule is awful so I apologize if my reporting is
sporadic. Thank you Duncan as well.

On Mon, Aug 15, 2022, 08:05 René J.V. Bertin  wrote:

> On Monday August 15 2022 13:37:38 René J.V. Bertin wrote:
> > /*!
> >
> > Set the timeout, in milliseconds, before the gesture triggers.
> >
> > The recognizer will detect a touch down and if \a msecs
> > later the touch is still down, it will trigger the
> QTapAndHoldGesture.
> > The default value is 700 milliseconds.
> >
> > */
> > void QTapAndHoldGesture::setTimeout(int msecs)
> > {
> >
> > QTapAndHoldGesturePrivate::Timeout = msecs;
> >
> > }
>
> NB: the timeout appears to be a global parameter, not something that can
> be varied so you cannot have different timeouts on tap-and-hold gestures
> (on different objects, for instance) in a single application.
>
> That means it *should* be possible to inject an override that sets the
> timeout to some sufficiently long duration so you don't trigger the gesture
> by accident but can still trigger it if you want to.
> That would be done by a simple call to QTapAndHoldGesture::setTimeout(); a
> good place to do that would be in a widget style. Those are typically not
> very complicated to build (and distros usually make it easy to install the
> build dependency of any of their packages).
>
> @Duncan: in what part of the code did you see the implementation? I put my
> own implementation in the KdePlatformTheme class which is one of the rare
> places where it gets exposed to just about any Qt application with a GUI.
> If the Plasma implementation is in a similar package (the plasma-framework
> isn't the most complex or expensive to build) it would be almost just as
> easy to disable the feature or set that timeout there.
>
> R.
>


Re: A way to disable the long-left mouse click shortcut to enter "Edit Mode" / modifying widgets?

2022-08-15 Thread Koeame
>
> (sorry, "Koeame" doesn't come
> with a default-gender label here and there's no preferred pronoun
> indication so singular-they it is)
>

He/him.

While I don't agree with the lack of configuration (as should be plain

from the above, I'd turn it off if I could, too), it should be noted that

plasma is multi-physical-platform targeted.  Plasma-touch (IIRC that's

what it's called), for use on phones and the like, is a thing, with

development for the pinephone originally helping it progress by leaps and

bounds.


Alright, is there a way to turn Plasma-Touch off or anything like
that, assuming the long-clicking is tied to it? That could be a way to
disable the annoying long-clicking I'm doing. Apologies for the wording,
I'm not tech-savvy.


Re: A way to disable the long-left mouse click shortcut to enter "Edit Mode" / modifying widgets?

2022-08-14 Thread Koeame
>
> Does a right-click activate edit mode directly or via a context menu?
>
It's just a context menu, my apologies, I should have clarified.

>
> Long-click is the traditional way to bring up the context menu in touch
> interfaces; it would not surprise me if the tablet handles this
> autonomously.
>
 It's not a touchpad for human fingers, it's just a projector tablet that
can only sense the pen that comes with it. No touching involved. The pen's
function behaves like a normal left-mouse click for any pressing I do on it
unless I press the other buttons in the pen (which don't really do
anything, I'd have to keybind it ).

>
> Pen click: you mean like clicking the mouse cursor on an object to "grab"
> it? The touch interfaces I am familiar with use a double tap for that.
>
No.

>
> Alternatively: does the unwanted event still occurs if you move the pen a
> tiny bit before 1s has elapsed?
>
Yes, but it sometimes also doesn't do that, too, so good point. I'd like to
make dots and do it perfectly still on drawing programs like Krita and most
of the time it would trigger the functionality.

>
> Finally: I see there are Linux drivers for at least some models. Did you
> install those?! According to the manual I looked at there are many things
> that can be configured via the driver software. Maybe there is also
> something like a bios (firmware) settings screen you can call up when
> booting the tablet? It might be possible there to increase the required
> long-click duration, or even deactivate the feature altogether.
>
I did. For my current distro I used the .rpm (OpenSUSE) version of the
file, because XP-PEN does provide different compressed packages (.deb,
.tar.gz, and .rpm). The drivers work like a charm and I had no problems
with it.

If you find no suitable solution you can always write to the company (
> serv...@xp-pen.com); I'm guessing you paid enough for this device. Long
> ago I was interested in a non-standard application of a graphics tablet
> with pen pressure and tilt detection, to be used from an SGI workstation. I
> got into contact with a product manager, who was eager and interested to
> help me write my own driver.

I'll talk to them if I've found no luck so far.


Re: A way to disable the long-left mouse click shortcut to enter "Edit Mode" / modifying widgets?

2022-08-14 Thread Koeame
Hi,

Yes. It just happens when I hold left-click (which is also my pen click)
for one second and it thinks I want to modify widgets based on that (thus
being, Edit Mode). Krita was only pointed as an example for an app I use
alongside, the Long-click is indiscriminate to any program and it still
happens anytime I happen to press for one second. It's also indiscriminate
whichever distro I use with KDE as its DE. I'll take a look at using xev
and synclient and learning how to use it.

Also, if I may ask, why would the Edit Mode long-click be a hardcoded
gesture that I cannot enable or disable if I can just right click and Enter
Edit Mode that way, or Alt + D for my keyboard shortcut?

On Sun, Aug 14, 2022 at 6:21 AM René J.V. Bertin 
wrote:

> On Saturday August 13 2022 23:44:11 Koeame wrote:
> >Hi, I've been trying to find a way to disable this feature for about a
> year
> >now, and to no avail. I have a XP-PEN projector tablet, counted as a
> second
> >monitor, and when I press and hold my pen for no more than a second, I
> >trigger the "Edit Mode" functionality. This has been an annoying problem
>
>
> NB: this is something for which you may have to ask on the calligra or
> krita (devel) MLs.
>
> Is long-press the normal trigger for edit mode or if not, what is? Some
> mouse/trackpad drivers (which can be in firmware) have hardcoded gestures
> which you cannot modify. I had a tablet PC where the trackpad has hide or
> shade window(s) coupled to a 2-finger gesture I'm used to making for other
> things. On Linux I was able to avoid that by using xev to determine what
> events were being generated. I don't remember exactly how I used that info
> to solve the issue; either via xmodmap or via KDE's global shortcut
> mechanism. In your case synclient may also offer a solution, or whatever
> equivalent exists for the touchscreen driver.
>
> R.
>


Re: A way to disable the long-left mouse click shortcut to enter "Edit Mode" / modifying widgets?

2022-08-14 Thread Koeame
Hi,

Yes. It just happens when I hold left-click (which is also my pen click)
for one second and it thinks I want to modify widgets based on that (thus
being, Edit Mode). Krita was only pointed as an example for an app I use
alongside, the Long-click is indiscriminate to any program and it still
happens anytime I happen to press for one second. It's also indiscriminate
whichever distro I use with KDE as its DE. I'll take a look at using xev
and synclient and learning how to use it.

Also, if I may ask, why would the Edit Mode long-click be a hardcoded
gesture that I cannot enable or disable if I can just right click and Enter
Edit Mode that way, or Alt + D for my keyboard shortcut?

On Sun, Aug 14, 2022 at 6:21 AM René J.V. Bertin 
wrote:

> On Saturday August 13 2022 23:44:11 Koeame wrote:
> >Hi, I've been trying to find a way to disable this feature for about a
> year
> >now, and to no avail. I have a XP-PEN projector tablet, counted as a
> second
> >monitor, and when I press and hold my pen for no more than a second, I
> >trigger the "Edit Mode" functionality. This has been an annoying problem
>
>
> NB: this is something for which you may have to ask on the calligra or
> krita (devel) MLs.
>
> Is long-press the normal trigger for edit mode or if not, what is? Some
> mouse/trackpad drivers (which can be in firmware) have hardcoded gestures
> which you cannot modify. I had a tablet PC where the trackpad has hide or
> shade window(s) coupled to a 2-finger gesture I'm used to making for other
> things. On Linux I was able to avoid that by using xev to determine what
> events were being generated. I don't remember exactly how I used that info
> to solve the issue; either via xmodmap or via KDE's global shortcut
> mechanism. In your case synclient may also offer a solution, or whatever
> equivalent exists for the touchscreen driver.
>
> R.
>


A way to disable the long-left mouse click shortcut to enter "Edit Mode" / modifying widgets?

2022-08-13 Thread Koeame
Hi, I've been trying to find a way to disable this feature for about a year
now, and to no avail. I have a XP-PEN projector tablet, counted as a second
monitor, and when I press and hold my pen for no more than a second, I
trigger the "Edit Mode" functionality. This has been an annoying problem
for me since I tried drawing on Krita, and I oddly see no one else having a
solution to this issue. I've tried going through gestures, shortcuts, mouse
input, to see if I can find it but this shortcut isn't listed.

If there's a way at all to disable this that would be very appreciated.
Thank you.