This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Shortcut with D-Bus for Pidgin

Tags: None
(comma "," separated)
User avatar
DomiX
Registered Member
Posts
9
Karma
0
OS

Shortcut with D-Bus for Pidgin

Wed Jun 25, 2014 5:44 pm
Hello!
I already wrote at the German Pidgin-forum about this.
But I'm not sure, if it's only a thing of Pidgin, 'cause it's part of both, I think.

I'd like to use the shortcut [Ctrl]+[Space] to bring the window with new message to the front. (Like a click on the system-control-symbol.)
But I'm not sure, how to realize:
First I tried to use wmctrl to realize it. Okay, it works, it brings the window, named 'pidgin' to the front.
But not the tab with the new message. So I came to the new idea:
Second way should work with the D-Bus.
Unfortunately I don't know, if im.pidgin.purple.PurpleService > /im/pidgin/purple/PurpleObject/im.pidgin.purple.Purpleinterface > ReceivedImMsg is the correct possition to get opened the window/tab with. (im.pidgin.pur... <- first line, > [second line] > so on)


This part is probably only from Pidgin: Also with plugins I've tried to get it working:
On the desktop or in the K-Menu it works greatefully. But if I'm pressing the shortcut in Firefox, VLC or some outher programs (exept Pidgin, of course) the shortcuts don't work. But this is, why the shortcuts for every Program are definied.
And once more: But! ( XD ) with wmctrl it works global. From every program!

Any ideas, I can try?

Thanks in advance


KDE: 5.8.4 (2017-01-02)
Distribution: Arch Linux
Kernel: 4.8.13-1-ARCH x84_64 (2017-01-02)
DDR4: 32GB
Processor: 8x Intel Core i7-67000K 4.00GHz
Graphic: NVidia GeForce GTX 1070 with Nvidia driver
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Shortcut with D-Bus for Pidgin

Fri Jun 27, 2014 8:13 am
As for why it doesn't work with Firefox, etc. this could be due to KWin's focus stealing prevention. As a test, try temporarily disabling it.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
luebking
Karma
0

Re: Shortcut with D-Bus for Pidgin

Fri Jun 27, 2014 8:00 pm
It's certainly FSP, since wmctrl will use the tool leverage to get the focus set.

What kind of shortcut (ie. what is it bound to) is this in particular? Some pidgin dbus interface to raise a tab/window?
User avatar
DomiX
Registered Member
Posts
9
Karma
0
OS

Re: Shortcut with D-Bus for Pidgin

Thu Aug 07, 2014 9:16 am
I'm not sure, if I understand you correct, so please explain if I didn't. ^^'

What kind of shortcut (ie. what is it bound to) is this in particular? Some pidgin dbus interface to raise a tab/window?

The shortcut should be [CTRL] + [SPACE].
At the moment I use wmctrl with [CTRL] + [SHIFT] + [SPACE] to get the windows of pidgin in the foreground. Also the Pidgin-plugin 'shortcut' configured with [CTRL] + [SPACE].
But it's annoing and not the intention, I want.
Some additional informations:
If I use the Pidgin-plugin 'shortcut' configured with [CTRL] + [SPACE] only, the window/tab with the >new message< get's focus on all tabs/windows of Pidgin, but not global. That means: If I have FireFox and Pidgin side by side on my screen, and press [CTRL] + [SPACE] I can read the new message in Pidgin, because it shows me the window/tab with the new message. But the focos is not set! That means, if I start typing, I alredy type in FireFox.
That mean in the whole the shortcut of the Pidgin-plugin works from everywhere, BUT only inside Pidgin. It does NOT bring the window with the new message in front of all windows.
I hope that wasn't to confusing. ^^'

It's certainly FSP, since wmctrl will use the tool leverage to get the focus set.

What's FSP? Is wmctrl not good to for this to use? Is FSP a program like wmctrl, which I should try?


KDE: 5.8.4 (2017-01-02)
Distribution: Arch Linux
Kernel: 4.8.13-1-ARCH x84_64 (2017-01-02)
DDR4: 32GB
Processor: 8x Intel Core i7-67000K 4.00GHz
Graphic: NVidia GeForce GTX 1070 with Nvidia driver
luebking
Karma
0
FSP is an abbr. for "Focus Stealing Prevention" ;-)

Afaiu, you're calling into some pidgin function that is supposed to make it raise itself.
And apparently this fails because the WM (window manager) thinks that some application just wants to be important (and then denies - there's no way for the WM to know *what* made pidgin attempt to raise itself)
There's a special call to tell the WM "this is a legit demand in user response, please raise" but apparently pidgin doesn't use this.

-> You've to switch off FSP for pidgin

Rightclick the titlebar, say "More Actions"/"Special application settings"
In the "Appearances & Fixes" tab, enable the "Focus Stealing Prevention" and "Force" it to "None"

The check whether your shortcut now works as expected.
User avatar
DomiX
Registered Member
Posts
9
Karma
0
OS

Re: Shortcut with D-Bus for Pidgin

Thu Aug 07, 2014 10:14 pm
Yes! This works. Now only the plug-in of Pidgin 'shortcut' works! X)

I've never seen this tool of KDE, but, of course, it was always there.

I love Linux + KDE more 'n' more! X)
I know, why I've chosen KDE! :D

Thanks a lot luebking for detailed guidance! :-)

For outhers:
KDE: 4.13.3 (07.08.2014)
Distribution: Arch Linux
Release: 3.15.7-1 x64 (07.08.2014)
DDR: 2GB
Processor: AMD Athlon(tm) 64 Processor 3500+
(So anyone can see which system works with this, when I've asked, because my original signature will keep up with the time.)


KDE: 5.8.4 (2017-01-02)
Distribution: Arch Linux
Kernel: 4.8.13-1-ARCH x84_64 (2017-01-02)
DDR4: 32GB
Processor: 8x Intel Core i7-67000K 4.00GHz
Graphic: NVidia GeForce GTX 1070 with Nvidia driver


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]