Skip to content

Instantly share code, notes, and snippets.

@Schroedi
Schroedi / gist:45d6af3f4500df76459d
Last active August 29, 2015 14:10
sloppy mouse for tag switching in awesome wm
-- global timer that runs once and focuses the window currently under the mouse pointer
sloppytimer = timer({ timeout = 0.01 })
sloppytimer:connect_signal("timeout", function()
c = awful.mouse.client_under_pointer(screen)
if c then
client.focus = c
c:raise()
end
sloppytimer:stop()
end)
#include <stdio.h>
#include <stdlib.h>
#include "findMaxP.h"
int getSizeForMax() {
return 10000;
}
int findMaxP(int length, int arr[]) {