Implement special value 'current' for output. (#2483)
This commit introduces the special 'current' value for outputs in both of * move con to output current * move workspace to output current fixes #2357
This commit is contained in:
committed by
Michael Stapelberg
parent
6a8fb69eff
commit
c71f6f8f7c
@ -101,8 +101,7 @@ static void attach_to_workspace(Con *con, Con *ws, direction_t direction) {
|
||||
*/
|
||||
static void move_to_output_directed(Con *con, direction_t direction) {
|
||||
Con *old_ws = con_get_workspace(con);
|
||||
Con *current_output_con = con_get_output(con);
|
||||
Output *current_output = get_output_by_name(current_output_con->name);
|
||||
Output *current_output = get_output_for_con(con);
|
||||
Output *output = get_output_next(direction, current_output, CLOSEST_OUTPUT);
|
||||
|
||||
if (!output) {
|
||||
|
Reference in New Issue
Block a user