2011-02-21 01:43:39 +01:00
|
|
|
/*
|
|
|
|
* vim:ts=4:sw=4:expandtab
|
2011-10-25 22:19:38 +02:00
|
|
|
*
|
|
|
|
* i3 - an improved dynamic tiling window manager
|
2015-04-04 02:17:56 +02:00
|
|
|
* © 2009 Michael Stapelberg and contributors (see also: LICENSE)
|
2011-10-25 22:19:38 +02:00
|
|
|
*
|
|
|
|
* output.c: Output (monitor) related functions.
|
|
|
|
*
|
2011-02-21 01:43:39 +01:00
|
|
|
*/
|
2013-12-29 03:11:50 +01:00
|
|
|
#pragma once
|
2011-02-21 01:43:39 +01:00
|
|
|
|
2016-10-11 09:13:35 +02:00
|
|
|
#include <config.h>
|
|
|
|
|
2011-02-21 01:43:39 +01:00
|
|
|
/**
|
|
|
|
* Returns the output container below the given output container.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
Con *output_get_content(Con *output);
|
2015-03-04 09:22:25 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns an 'output' corresponding to one of left/right/down/up or a specific
|
|
|
|
* output name.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
Output *get_output_from_string(Output *current_output, const char *output_str);
|
2015-08-26 21:06:53 +02:00
|
|
|
|
2017-09-09 09:18:29 +02:00
|
|
|
/**
|
|
|
|
* Retrieves the primary name of an output.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
char *output_primary_name(Output *output);
|
|
|
|
|
2016-09-30 17:28:02 +02:00
|
|
|
/**
|
|
|
|
* Returns the output for the given con.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
Output *get_output_for_con(Con *con);
|
|
|
|
|
2015-08-26 21:06:53 +02:00
|
|
|
/**
|
|
|
|
* Iterates over all outputs and pushes sticky windows to the currently visible
|
|
|
|
* workspace on that output.
|
|
|
|
*
|
2018-10-11 11:05:31 +02:00
|
|
|
* old_focus is used to determine if a sticky window is going to be focused.
|
|
|
|
* old_focus might be different than the currently focused container because the
|
|
|
|
* caller might need to temporarily change the focus and then call
|
|
|
|
* output_push_sticky_windows. For example, workspace_show needs to set focus to
|
|
|
|
* one of its descendants first, then call output_push_sticky_windows that
|
|
|
|
* should focus a sticky window if it was the focused in the previous workspace.
|
|
|
|
*
|
2015-08-26 21:06:53 +02:00
|
|
|
*/
|
2018-10-11 11:05:31 +02:00
|
|
|
void output_push_sticky_windows(Con *old_focus);
|