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

  • From: Bernhard Guillon <Bernhard.Guillon@xxxxxxxxxxxxxx>
  • To: Discussions/Questions about the i3 window manager <i3-discuss@xxxxxxxxxxxxx>
  • Date: Sun, 25 Sep 2011 01:25:39 +0200 (CEST)



On Sat, 24 Sep 2011, Michael Stapelberg wrote:

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.


Thanks for your advice I will dig deeper into the suggested code :)

Best regards,
Bernhard

Other related posts: