get_root


Description:

public unowned Menuitem get_root ()

Grabs the root node for the specified client this.

This function may block. It will block if there is currently a call to update the layout, it will block on that layout updated and then return the newly updated layout. Chances are that this update is in the queue for the mainloop as it would have been requested some time ago, but in theory it could block longer.

Parameters:

this

The Client to get the root node from

Returns:

A Menuitem representing the root of menu on the server. If there is no server or there is an error receiving its layout it'll return NULL.