Exclusions in ClientModelByScreenAndDesktop
Closed, ResolvedPublic

Description

I am developing a Kwin script (https://github.com/tcorreabr/Parachute) using ClientModelByScreenAndDesktop registered in kwin/scripting/scripting.cpp using the KWin.ClientModel.OtherActivitiesExclusion option, but it doesn't seem to have any effect. The model always returns all windows regardless of current activity. Even though I have windows in just a few activities.

I'm also using other exclusions like KWin.ClientModel.NotAcceptingFocusExclusion and KWin.ClientModel.DockWindowsExclusion, and these seems to work correctly.

zzag added a subscriber: zzag.Mar 31 2020, 8:14 AM

Are you sure that those windows are not on all activities?

Unfortunately, yes. I confirmed it now using the Desktop Grid effect.

I'm using Plasma 5.18.4.1 on Arch Linux.

rekols moved this task from Backlog to Work In Progress on the KWin board.Apr 6 2020, 5:15 PM
rekols moved this task from Work In Progress to Backlog on the KWin board.
zzag added a comment.EditedApr 14 2020, 12:16 PM

Hmm, so I don't see anything that could cause OtherActivitiesExclusion not to work. Could you please attach a test script to this task? It would be very helpful.

Edit: Okay, never mind.

Great!

For the record, only now I went to read https://community.kde.org/Get_Involved/development. Now after solving some issues in my project, I must use Phabricator properly and maybe I can contribute with some patches to KWin.

tcorreabr closed this task as Resolved.Apr 15 2020, 12:56 PM
zzag added a comment.Apr 24 2020, 10:30 AM

@tcorreabr The fix has landed in 5.18.5. Thank you for reporting this issue.

Thanks for fixing this!