I want to hide/show the title bar of a window with a key shortcut. So I got this script from a website (of which I don't have the URL anymore):#! /bin/sh -xwinid=$(xprop -root | awk '/_NET_ACTIVE_WINDOW/ {print $5; exit;}')current=$(xprop -id $winid | awk '/_MOTIF_WM_HINTS/ { sub(/,/,,$5); print $5 }')if [ -z $current ]; then    current=0;else    current=$((1-$current))fixprop -id $winid -f _MOTIF_WM_HINTS 32c -set _MOTIF_WM_HINTS 0x2, 0x0, $current, 0x0, 0x0I bound this script to Alt+F12 (I also tried Super+w with the same effect). It works perfectly to toggle the window title on and off, except on maximized windows. When I run this script while the active window is maximized, the window hides completely. Undoing the operation shows the window again. But I don't want the window to hide, I only want the remove the window title bar.I use Linux Mint 17 with Cinnamon 2.2.16.
xprop -set _MOTIF_WM_HINTS hides maximized window
x11;cinnamon;window management