mirror of
https://github.com/swaywm/sway.git
synced 2025-10-31 22:25:26 -04:00
container: Move container_under_pointer here from handlers.
This commit is contained in:
parent
ad1cd0a3bd
commit
865b30f138
4 changed files with 67 additions and 66 deletions
|
|
@ -5,6 +5,8 @@ typedef struct sway_container swayc_t;
|
|||
|
||||
#include "layout.h"
|
||||
|
||||
extern struct wlc_origin mouse_origin;
|
||||
|
||||
enum swayc_types{
|
||||
C_ROOT,
|
||||
C_OUTPUT,
|
||||
|
|
@ -98,6 +100,8 @@ swayc_t *swayc_by_name(const char *name);
|
|||
swayc_t *swayc_active_output(void);
|
||||
swayc_t *swayc_active_workspace(void);
|
||||
swayc_t *swayc_active_workspace_for(swayc_t *view);
|
||||
// set focus to current pointer location and return focused container
|
||||
swayc_t *container_under_pointer(void);
|
||||
|
||||
// Container information
|
||||
|
||||
|
|
|
|||
|
|
@ -5,10 +5,6 @@
|
|||
#include <wlc/wlc.h>
|
||||
|
||||
extern struct wlc_interface interface;
|
||||
extern struct wlc_origin mouse_origin;
|
||||
extern uint32_t keys_pressed[32];
|
||||
|
||||
// set focus to current pointer location and return focused container
|
||||
swayc_t *container_under_pointer(void);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue