Several bugfixes: B7, B8, B9, B10

Fixed - B7: [Issue #7] Fix file manager error with file/directory names
duplication.
Fixed - B8: [Issue #8] Fix not moving titles of windows when moving
windows horizontaly.
Fixed - B9: [Issue #4] Bug is still reproducible. Fix paint crash when
moving out of the screen. Possible error with scroll bars.
Fixed - B10: [Issue #10] Fix desktop context-menu showing on right click
on program window.