A few year ago I wanted to achieve the snap window function in Lubuntu 14.04. I think you need openbox for this to work.
Take a look at https://github.com/lawl/opensnap
Below is a summary of the installation procedure quoted from that page:
If you want to install
opensnap from source first make sure you have git installed. (Or fetch a zip file: https://github.com/lawl/opensnap/archive/master.zip)
Fetch via git:
git clone https://github.com/lawl/opensnap.git
Fetch via zip:
Make sure you have all prerequisites:
sudo apt-get install build-essential libx11-dev libgtk-3-dev wmctrl
And finally build and install it:
sudo make install
And now start opensnap with
if you want it to daemonize.
If I remember well, there was a bug when trying to unsnap the snapped window. Take a look at https://github.com/lawl/opensnap/issues/4 there is a workaround described.
In my case Lubuntu 14.04 I had to modify
The code between the tags
<mousebind button="Left" action="Drag"> and
</mousebind> has to be exchanged by:
<mousebind button="Left" action="Drag">
<!-- Unsnap if snapped-->
<!-- we center windows in order to mitigate discrepancies
between window placement and mouse cursor -->
Make sure that you are inside the tags of