Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
wlroots-based Wayland compositor with virtual outputs and physical cursor continuity.
Originally forked from dwl.

`LOC: 7444 total, 2880 vwl.c`
`LOC: 7448 total, 2880 vwl.c`

## Features

Expand Down
4 changes: 4 additions & 0 deletions config.def.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,17 @@ static const int fullscreen_idle_inhibit = 1; /* 1 inhibits idle whenever a v
static const int passthrough_on_pointer_lock = 0; /* 1 passes keybindings to client when pointer is locked (eg QEMU grab) */
static const unsigned int borderpx = 1; /* border pixel of windows */
static const unsigned int floatborderpx = 1; /* border pixel of floating windows */
static const unsigned int xborderpx = 1; /* border pixel of Xwayland windows */
static const float rootcolor[] = COLOR(0x222222ff);
static const float bordercolor[] = COLOR(0x444444ff);
static const float focuscolor[] = COLOR(0x005577ff);
static const float urgentcolor[] = COLOR(0xff0000ff);
static const float floatbordercolor[] = COLOR(0x444444ff);
static const float floatfocuscolor[] = COLOR(0x005577ff);
static const float floaturgentcolor[] = COLOR(0xff0000ff);
static const float xbordercolor[] = COLOR(0x444444ff);
static const float xfocuscolor[] = COLOR(0x005577ff);
static const float xurgentcolor[] = COLOR(0xff0000ff);
static const int center_floating_windows = 0; /* center windows when toggled floating */
static const float floating_window_width_factor = 1.0f; /* 0 < factor <= 1 */
static const float floating_window_height_factor = 1.0f; /* 0 < factor <= 1 */
Expand Down
8 changes: 4 additions & 4 deletions vwl.c
Original file line number Diff line number Diff line change
Expand Up @@ -895,17 +895,17 @@ borderwidth(Client *c)
{
if (!c || client_is_unmanaged(c) || c->isfullscreen)
return 0;
return c->isfloating ? floatborderpx : borderpx;
return client_is_x11(c) ? xborderpx : c->isfloating ? floatborderpx : borderpx;
}

static const float *
bordercolorfor(Client *c, int focused)
{
if (c->isurgent)
return c->isfloating ? floaturgentcolor : urgentcolor;
return client_is_x11(c) ? xurgentcolor : c->isfloating ? floaturgentcolor : urgentcolor;
if (focused)
return c->isfloating ? floatfocuscolor : focuscolor;
return c->isfloating ? floatbordercolor : bordercolor;
return client_is_x11(c) ? xfocuscolor : c->isfloating ? floatfocuscolor : focuscolor;
return client_is_x11(c) ? xbordercolor : c->isfloating ? floatbordercolor : bordercolor;
}

static void
Expand Down
Loading