Found the first part of my problem, I had a XCB_GRAB_MODE_SYNC, where I meant XCB_GRAB_MODE_ASYNC, that made things much better, now to do actual movement.<div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Dec 11, 2012 at 1:57 PM, Micah Nordland <span dir="ltr"><<a href="mailto:mpnordland@gmail.com" target="_blank">mpnordland@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">So I'm trying to grab buttons in my window manager project. I know I need to use xcb_grab_button,<div>and that I need to pass it the event masks that I want, and finally, I need to handle that button in the event loop. I have this code for grabbing the button:</div>
<div><div> xcb_grab_button(globalconf.conn, 0, _id, XCB_EVENT_MASK_BUTTON_PRESS|XCB_EVENT_MASK_BUTTON_RELEASE,</div><div> XCB_GRAB_MODE_SYNC, XCB_GRAB_MODE_ASYNC, globalconf.root, XCB_NONE,</div><div> 1,</div>
<div> XCB_BUTTON_MASK_ANY);</div><div><br></div><div>I got it from i3's source, and I do get a button press, but no release, and after that, mouse input into applications no longer works. This (obviously) is not what I want, and I *know* that it can be done. I just need to see how it's done right!</div>
<span class="HOEnZb"><font color="#888888">
<div><br></div>-- <br>Praising my Savior all the day long,<div>Micah Nordland</div><br>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Praising my Savior all the day long,<div>Micah Nordland</div><br>
</div>