please help me implement Unity like features , undecorate window when maximized

Jari Rahkonen jari.rahkonen at pp1.inet.fi
Thu Nov 3 10:39:25 CET 2011


03.11.2011 11:30, Aaron Lewis kirjoitti:
> Hi,
> 	I wanted to hide window borders when it's maximized , so i
> 	downloaded xfwm4's source , and figured out my first station
> 	should be client.c
>
> 	void clientToggleMaximized ()
>
> 	But when i try to use gtk_window_set_decorated () to remove borders
> 	I got confused about which GtkWidget is should use ?
>
> //// in clientToggleMaximized:
> 	if ( restore_position )
> 	{
> 		gtk_window_set_decorated ( ?? , FALSE );
> 	}
> 	else
> 	{
> 		gtk_window_set_decorated ( ?? , TRUE );
> 	}
> ////
>
> 	I'll really appreciate it if any developers could tell a bit about
> 	the structure of XFWM4 , which saves my time ..
>
> 	Thanks in advance !
>

So you want something like the full screen mode (alt+F11) without hiding 
the panel? Just checking, as I've never used Unity.

- Jari


More information about the Xfce4-dev mailing list