I use debian (wheezy) with xfce 4.8. My laptop screen resolution is 1366x768. I use a script to open two gnome-terminals:
#!/bin/bash
gnome-terminal --geometry 74x51+0+0 --working-directory="/home/nuoritoveri/mag/repo/src" &
gnome-terminal --geometry 73x51+700+0 --working-directory="/home/nuoritoveri/mag/build" &
Together they take approximately whole space of the laptop screen, one window on the right and one on the left.
If I maximise one of the windows (by clicking button on window bar) it gets maximised. When I click the 'unmaximise' button it does not return to previous size. It returns to previous width but is too high - it's too big to fit the screen.
The same is happening if instead of maximising I use F11 to get to fullscreen and go back.
I wasn't able to reproduce this problem with gnome-terminal opened from menu and resized to the approximately the same size as the start size of the script-made windows.
Is there a way to overcome this? What should I check first?
I usually use this script to edit code on the right and compile on the left but sometimes I have to enlarge the window to see a long line in code (I don't use wrap in vim, it makes me go insane).