aboutsummaryrefslogtreecommitdiff
path: root/src/safe_x11
AgeCommit message (Collapse)AuthorFilesLines
2015-12-07Implement desktops.Matias Linares2-5/+22
It's somewhat buggy. But works :). There're 2 desktops only for now, maybe later I will implement something more dynamic
2015-11-30Add resize-win-sticky.Matias Linares2-1/+30
The move window sticky is working weirdly. The movement should be using the attrs.x and attrs.y instead the attrs.x/y + attrs.width/height. But it's working :).
2015-11-29Begin ef EWMH support and sticky movementMatias Linares2-1/+84
The implementationn of the EWMH and ICCCM support is incomplete. I need to check how to implement on the right way.
2015-11-22Death to the threads.Matias Linares5-80/+23
All the socket stuff is done syncing it with select calls so we can get either a X11 event or a Socket event. Also cleanup the C mess, it's done all in rust now :).
2015-11-22Add socket functionality.Matias Linares1-1/+1
Something simple, but it works pretty well. The mapping between the strings that comes from the socket and functions, modifiers, keys, etc. needs some rewrite because now there's a manual mapping. The autostart file shows some functionality on how it will work. Since the next_xevent is ticking on 1s, it's preferible to make the writes on the socket all together, otherwise will pass 1 sec between two calls.
2015-11-22next_xevent don't block anymore!Matias Linares5-13/+80
Now the next_xevent (from the safex11) will not block forever. So we can listen the socket without doing some thread stuff.
2015-11-16Add MIT LICENSEMatias Linares2-0/+4
2015-11-09ExecFn Rewrite.Matias Linares1-8/+13
This now allows to call a ExecFn with a &mut DotWM by parameter. This help to do some things like do the window swapping. through mod4 + tab. Also the bindings are not longer on the wm, because this generates some problems with the ExecFn. Also, now it's posible to resize the windows :)
2015-11-09Focus handling.Matias Linares2-2/+1
For now this have some bugs. Some complex programs (i.e. thunar, firefox) will spawn a lot of XCreateEvents and the last window it's not focused correctly. Also the enter notify should work on an input instead hovering the window
2015-11-08Initial commitMatias Linares2-0/+345
This initial commit has the following: * We can spawn a terminal. * Given a new window, we can move it around the screen, but only the window that was created, all the other windows disappear on the void, so.. :( and that's it