Re: [i3] Switching workspaces when mouse touch the border of it

  • From: Michael Stapelberg <michael+i3@xxxxxxxxxxxxx>
  • To: i3-discuss <i3-discuss@xxxxxxxxxxxxx>
  • Date: Sat, 24 Sep 2011 15:36:57 +0100

Hi Bernhard,

Excerpts from Bernhard Guillon's message of 2011-09-24 15:26:57 +0100:

I already explorded i3 and I like it. For _me_ it is lacking this feature
(and some other). I can self decide what I use and what not. I am also
able to implement the missing features myself. As I always do when I
implement
Of course you have the freedom to do that. Nevertheless, the hint that you
might want to re-evaluate how you use i3 is appropriate, since you clearly want
a feature which does not really fit into our concept :).

something I try to share it and ask the mainline people how to implement
it better because in my experience the mainline people allways knows
their code best.
Well, a few hints on how to implement this:
• Check out grabbing, see for example drag_pointer() in src/floating.c. You
will probably need to grab the pointer in order to always receive
PointerMotion events.
• You have to get a bit more familiar with the tree. checking the root window
size is not appropriate for finding out how big your screen(s) are. Just
recursively go to the parent until you find the appropriate containers (type
== CT_OUTPUT).
• Also, use con_focus() instead of pointer warping.

Best regards,
Michael

Other related posts: