Make fullscreen windows open on the output which is indicated by their geometry

With this change, multi-monitor presentations (e.g. as implemented by
LibreOffice Impress) work out of the box. Previously, one had to move
the presentation windows to the right outputs oneself.
This commit is contained in:
wentasah
2016-04-06 21:19:10 +02:00
committed by Michael Stapelberg
parent 66d9c983e4
commit fec1a9511e
6 changed files with 132 additions and 1 deletions

View File

@ -79,6 +79,13 @@ Output *get_output_by_name(const char *name);
*/
Output *get_output_containing(unsigned int x, unsigned int y);
/**
* Returns the active output which spans exactly the area specified by
* rect or NULL if there is no output like this.
*
*/
Output *get_output_with_dimensions(Rect rect);
/*
* In contained_by_output, we check if any active output contains part of the container.
* We do this by checking if the output rect is intersected by the Rect.