mirror of
https://codeberg.org/FabricSoul/dwl.git
synced 2025-08-03 20:10:23 -04:00
add chvt function
It truly isn't just a window manager anymore :-|
This commit is contained in:
parent
eafd317eec
commit
2cb526bbd9
2 changed files with 13 additions and 0 deletions
10
dwl.c
10
dwl.c
|
@ -126,6 +126,7 @@ struct render_data {
|
|||
static void arrange(Monitor *m);
|
||||
static void axisnotify(struct wl_listener *listener, void *data);
|
||||
static void buttonpress(struct wl_listener *listener, void *data);
|
||||
static void chvt(const Arg *arg);
|
||||
static void createkeyboard(struct wlr_input_device *device);
|
||||
static void createmon(struct wl_listener *listener, void *data);
|
||||
static void createnotify(struct wl_listener *listener, void *data);
|
||||
|
@ -229,6 +230,15 @@ axisnotify(struct wl_listener *listener, void *data)
|
|||
event->delta_discrete, event->source);
|
||||
}
|
||||
|
||||
void
|
||||
chvt(const Arg *arg)
|
||||
{
|
||||
struct wlr_session *s = wlr_backend_get_session(backend);
|
||||
if (!s)
|
||||
return;
|
||||
wlr_session_change_vt(s, arg->ui);
|
||||
}
|
||||
|
||||
void
|
||||
buttonpress(struct wl_listener *listener, void *data)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue