buffet / kiwmi

A fully programmable Wayland Compositor
Mozilla Public License 2.0
612 stars 22 forks source link

Pointer focus improvements #41

Closed ghost closed 3 years ago

ghost commented 3 years ago

Until now, focusing a different view didn't move pointer focus to it, even though it was under the cursor. The pointer had to move in order to switch its focus. Similar situations should be handled after this commit.

One possible downside is the focus being updated too often.

This PR also allows all layer shell to have pointer focus, but [TODO] I haven’t had a look at its consequences yet (e.g. the move/resize/show/hide rechecks are still only triggered from XDG shell).

I feel like any code I write today is low-quality, so I’ll understand it if you don’t want to merge this.

buffet commented 3 years ago

Thanks, and good catch!

ghost commented 3 years ago

Teehee. I was still thinking there was place for improvement in this PR, but maybe it’s better to be left for later :) (actually, it was my mistake to have forgotten to mark it as a draft)

Btw., being reminded by your recent commits I wonder if there’s something happening on irc that I should know of? (It might make me hurry up with solving the show-stopper irc-related problematic.)

buffet commented 3 years ago

What IRC problematic?

No worries, it's pretty much dead, this is an attempt to change that.

ghost commented 3 years ago

That the servers don’t store history & my computer is offline more than online, making it pretty hard to communicate with anyone. (If you know about a good public bouncer host, pls let me know. Currently it seems like none can fulfill my –although maybe quite exorbitant– requirements.)