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

Changing behavior of app.activated on another virtualDesktop

Tags: None
(comma "," separated)
Minio
Registered Member
Posts
177
Karma
1
OS
Since this is my first post on this forum, I would like to say "hi!" to everyone :) .

I have been using Fluxbox almost exclusively for last five years. Recently I have switched to KDE SC (4.6.3) and I am pretty happy with this change. I must admit I am really impressed with new KDE. It suits me well.

There is only one thing I haven't found so far. In Fluxbox, I could configure behavior of windows activated on another virtual desktop (e.g. when some app from another virtual desktop shows a pop up window). There were three options:
- just ignore it
- move that window to current virtual desktop
- switch to virtual desktop with window deserving focus

On KDE, there is something between second and third option. When application from another desktop deserves focus, it appears on my task manager. When I click it on task manager, KDE switches to virtual desktop on which that app is running.
Can I change it? How?

In my task manager settings I sort tasks manually and switched on filter to show only tasks from current virtual desktop (and from current activity, but I don't really use activities).

Thanks in advance


Best regards
Mirosław Zalewski
Minio
Registered Member
Posts
177
Karma
1
OS
After 1,5 month of no replay, I think I can try bumping it up.


Best regards
Mirosław Zalewski
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
You might be able to accomplish this with a KWin window rule.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Minio
Registered Member
Posts
177
Karma
1
OS
Thanks for your reply.

Could you be a little bit more specific? In Window rules I can move window to some specified desktop, but I don't see an option to move it to current desktop.

I found out that `wmctrl -R` is basically what I need. But how can I get list of newest windows opened? Or, what would be better, attach wmctrl to "new window opened" event?

I tried KWin scripting, but with no success. I can run something on an event and I can check if new window is on current desktop, but I don't see any way to move it, either from KWin script method or external command.


Best regards
Mirosław Zalewski
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Unfortunately i'm not sure how to be notified of new windows being created. KWin would know about this, so I would suggest filing a bug report requesting that "Current desktop" be added to the list of options available for forcing a particular desktop.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Minio
Registered Member
Posts
177
Karma
1
OS
Thanks for your answer. I filed the bug report (Bug #280111). I do hope someone will consider my proposition described there.

Regards


Best regards
Mirosław Zalewski


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot], Yahoo [Bot]