i3
tiling_drag.h File Reference
#include "all.h"
Include dependency graph for tiling_drag.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  tiling_drag_t { TILING_DRAG_OFF = 0 , TILING_DRAG_MODIFIER = 1 , TILING_DRAG_TITLEBAR = 2 , TILING_DRAG_MODIFIER_OR_TITLEBAR = 3 }
 Tiling drag initiation modes. More...
 

Functions

bool has_drop_targets (void)
 Returns whether there currently are any drop targets.
 
void tiling_drag (Con *con, xcb_button_press_event_t *event, bool use_threshold)
 Initiates a mouse drag operation on a tiled window.
 

Enumeration Type Documentation

◆ tiling_drag_t

Tiling drag initiation modes.

Enumerator
TILING_DRAG_OFF 
TILING_DRAG_MODIFIER 
TILING_DRAG_TITLEBAR 
TILING_DRAG_MODIFIER_OR_TITLEBAR 

Definition at line 17 of file tiling_drag.h.

Function Documentation

◆ has_drop_targets()

bool has_drop_targets ( void )

Returns whether there currently are any drop targets.

Used to only initiate a drag when there is something to drop onto.

Definition at line 42 of file tiling_drag.c.

References all_cons, con_is_internal(), con_num_children(), croot, focused, GREP_FIRST, is_tiling_drop_target(), output_get_content(), TAILQ_FOREACH, and workspace_is_visible().

Referenced by route_click().

Here is the call graph for this function:

◆ tiling_drag()