Check if con_id exists in cmd_swap (#2898)
Also adds some testcases for swap using con_id. Fixes #2895
This commit is contained in:
committed by
Michael Stapelberg
parent
dedfda1e01
commit
369c9ed50f
@ -152,6 +152,13 @@ bool con_has_parent(Con *con, Con *parent);
|
||||
*/
|
||||
Con *con_by_window_id(xcb_window_t window);
|
||||
|
||||
/**
|
||||
* Returns the container with the given container ID or NULL if no such
|
||||
* container exists.
|
||||
*
|
||||
*/
|
||||
Con *con_by_con_id(long target);
|
||||
|
||||
/**
|
||||
* Returns the container with the given frame ID or NULL if no such container
|
||||
* exists.
|
||||
|
Reference in New Issue
Block a user