Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

merge wlroots-next #334

Merged
merged 78 commits into from
Dec 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
3300f6c
Upgrade for wlroots surface refactoring
Jan 18, 2022
ed44bc0
update wlr-output-layout-get-box
Feb 3, 2022
b8ce8d0
Account for changes expecting wlr_xdg_toplevel rather than wlr_xdg_su…
Feb 4, 2022
97881c8
Merge remote-tracking branch 'origin/output-layout-get-box-update' in…
Feb 4, 2022
76b3756
Merge remote-tracking branch 'origin/wlroots-xdg-shell-refactor' into…
Feb 4, 2022
2630664
Merge pull request #193 from fauxmight/chasing-wlroots
sevz17 Mar 10, 2022
432c15f
Merge branch 'main' into wlroots-next
sevz17 Mar 10, 2022
230d343
wlr_virtual_keyboard_v1 now has its own wlr_keyboard
sevz17 Mar 6, 2022
3577802
Merge branch 'wlroots-next' into scenegraph-wlroots-next
sevz17 Mar 11, 2022
a7c4f61
use scene layer shell helper
sevz17 Feb 13, 2022
98f33cd
follow up wlroots input device events renaming
sevz17 Mar 18, 2022
c8290f8
Merge branch 'wlroots-next' into scenegraph-wlroots-next
sevz17 Mar 18, 2022
a66210e
Merge branch 'main' into wlroots-next
sevz17 Mar 20, 2022
0662bc5
wlr_seat_set_keyboard() now takes wlr_keyboard as parameter
sevz17 Mar 23, 2022
4276410
improve floating detection
sevz17 Mar 21, 2022
40db9c8
remove a useless resize in mapnotify()
sevz17 Mar 21, 2022
a7f7777
only skip frames if there are visible clients that have a resize
sevz17 Mar 22, 2022
23af627
Update issue templates
sevz17 Mar 22, 2022
f2be10f
implement drag and drop
guidocella Mar 21, 2022
d8ab893
clients now works as expected in drag motion
sevz17 Mar 22, 2022
0db6f3c
add dwl(1)
Humm42 Jan 5, 2022
1a5b7e0
update IRC channel
guidocella Aug 3, 2021
5a1debb
add sway LICENSE file
sevz17 Mar 23, 2022
b42abea
Add a configuration option for fullscreen locking
Jul 12, 2021
a41d6cb
Fix dwl freezing when resizing
PalanixYT Feb 28, 2022
855e6c1
add note about how to change MODKEY for windows key
sevz17 Mar 23, 2022
281c947
inline the presentation variable
guidocella Mar 23, 2022
f353a0e
Revert "clients now works as expected in drag motion"
sevz17 Mar 23, 2022
c2899bc
set position of the drag icon in startdrag()
sevz17 Mar 23, 2022
3e79a9a
fix drag icon's surface returned by xytonode
sevz17 Mar 23, 2022
faaee90
destroy scene_output in cleanupmon()
sevz17 Mar 21, 2022
f75e426
createkeyboard now takes wlr_keyboard
sevz17 Mar 23, 2022
7018ed9
createpointer now takes wlr_pointer
sevz17 Mar 23, 2022
e08bd12
make sure to leave XWayland process waitable
djpohly Mar 29, 2022
0ddde0c
move sigchld() into XWayland section
djpohly Mar 29, 2022
dd0b8e4
Merge pull request #212 from djpohly/xwaitland
djpohly Mar 29, 2022
29a2b64
Merge remote-tracking branch 'djpohly/main' into HEAD
sevz17 Apr 9, 2022
4a2e761
replace deleted EBARF() with die()
sevz17 Apr 13, 2022
dc7709a
schedule a configure on maximize request
sevz17 Apr 16, 2022
31fa660
replace wlr_xwayland_surface_size_hints with xcb_size_hints_t
sevz17 May 8, 2022
dca68f9
Merge remote-tracking branch 'djpohly/main' into wlroots-next
sevz17 May 11, 2022
79a1482
specify version in wlr_xdg_shell_create()
sevz17 May 15, 2022
88a8b78
Merge remote-tracking branch 'djpohly/main' into wlroots-next
sevz17 May 17, 2022
283c043
chase wlroots scene-surface refactor
sevz17 May 22, 2022
c7007b4
chase wlroots scene-tree changes
sevz17 Jun 7, 2022
4b89033
use xdg-shell v3
sevz17 Jun 7, 2022
948fdcf
use xdg-shell v4
sevz17 Jun 9, 2022
a32db11
set client bounds at resize
sevz17 Jun 9, 2022
461d02d
chase wlroots input_device changes
sevz17 Jun 21, 2022
058c699
only set bounds for clients that support it
sevz17 Jul 15, 2022
e0cc5b0
Merge remote-tracking branch 'djpohly/main' into wlroots-next
sevz17 Aug 26, 2022
83e3782
add support for the single pixel buffer protocol
sevz17 Aug 29, 2022
dc59f77
enable adaptive sync if supported
sevz17 Sep 6, 2022
d113587
add missing library (xcb-icccm)
sevz17 Sep 18, 2022
ae3d435
Merge remote-tracking branch 'djpohly/main' into wlroots-next
sevz17 Oct 2, 2022
434ed11
wlroots check map state of layersurfaces this for us
sevz17 Oct 2, 2022
1eeb368
add support for the ext-idle-notify-v1 protocol
sevz17 Oct 23, 2022
6a0ec2a
Merge remote-tracking branch 'upstream/main' into wlroots-next
sevz17 Oct 29, 2022
8298f20
allow change adaptive sync in outputmgrapplyortest()
sevz17 Oct 29, 2022
99f0622
only destroy monitor's layer surfaces at destroy
sevz17 Oct 30, 2022
448a96d
remove now unneeded workaround in outputmgrapplyortest()
sevz17 Oct 30, 2022
fcb3fa4
Merge remote-tracking branch 'upstream/main' into wlroots-next
sevz17 Nov 11, 2022
972e3f3
Merge branch 'wlroots-next' into main
sevz17 Nov 21, 2022
88d386b
configurex11: resize floating clients and arrange tiled clients' monitor
sevz17 Nov 13, 2022
93a911d
simplify `if` expression in checkidleinhibitor()
sevz17 Nov 13, 2022
60a98b8
inhibit idle if surface's node is enabled
sevz17 Nov 13, 2022
63d6de5
fix set of layersurface->popups and surface->data
sevz17 Nov 13, 2022
7eebe67
set x and y of the layersurface's geometry box
sevz17 Nov 16, 2022
05eca0e
rename xwayland_surface to xsurface
sevz17 Nov 16, 2022
caec566
create a dedicated layer for fullscreen clients
sevz17 Nov 11, 2022
0873736
Revert "Add a configuration option for fullscreen locking"
sevz17 Nov 21, 2022
3213088
do not try to set the parent's same tags and monitor for xwayland cli…
sevz17 Nov 30, 2022
c91d21b
do not move/resize if grabbed client is fullscreen
sevz17 Nov 25, 2022
10c56d6
add option to allow invisible surfaces to disable idle tracking
sevz17 Dec 1, 2022
6df6781
simplify check for surface's node state
sevz17 Dec 1, 2022
b4fb1f7
fix xwayland clients being floating by default
sevz17 Dec 2, 2022
ce1d040
Merge branch 'main' of github.com:djpohly/dwl
sevz17 Dec 2, 2022
f929eae
ask for version instead of commit in bug reports
sevz17 Dec 2, 2022
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 .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ assignees: ''
---

## Info
dwl's commit:
dwl version:
wlroots version:
## Description
<!--
Expand Down
32 changes: 21 additions & 11 deletions client.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ client_get_parent(Client *c)
return client_from_wlr_surface(c->surface.xwayland->parent->surface);
#endif
if (c->surface.xdg->toplevel->parent)
return client_from_wlr_surface(c->surface.xdg->toplevel->parent->surface);
return client_from_wlr_surface(c->surface.xdg->toplevel->parent->base->surface);

return NULL;
}
Expand All @@ -57,8 +57,7 @@ client_get_size_hints(Client *c, struct wlr_box *max, struct wlr_box *min)
struct wlr_xdg_toplevel_state *state;
#ifdef XWAYLAND
if (client_is_x11(c)) {
struct wlr_xwayland_surface_size_hints *size_hints;
size_hints = c->surface.xwayland->size_hints;
xcb_size_hints_t *size_hints = c->surface.xwayland->size_hints;
if (size_hints) {
max->width = size_hints->max_width;
max->height = size_hints->max_height;
Expand Down Expand Up @@ -102,7 +101,20 @@ client_activate_surface(struct wlr_surface *s, int activated)
if (wlr_surface_is_xdg_surface(s)
&& (surface = wlr_xdg_surface_from_wlr_surface(s))
&& surface->role == WLR_XDG_SURFACE_ROLE_TOPLEVEL)
wlr_xdg_toplevel_set_activated(surface, activated);
wlr_xdg_toplevel_set_activated(surface->toplevel, activated);
}

static inline uint32_t
client_set_bounds(Client *c, int32_t width, int32_t height)
{
#ifdef XWAYLAND
if (client_is_x11(c))
return 0;
#endif
if (c->surface.xdg->client->shell->version >=
XDG_TOPLEVEL_CONFIGURE_BOUNDS_SINCE_VERSION)
return wlr_xdg_toplevel_set_bounds(c->surface.xdg->toplevel, width, height);
return 0;
}

static inline void
Expand Down Expand Up @@ -151,7 +163,6 @@ client_get_title(Client *c)
return c->surface.xdg->toplevel->title;
}


static inline int
client_is_float_type(Client *c)
{
Expand All @@ -173,8 +184,7 @@ client_is_float_type(Client *c)
}
#endif
return ((min.width > 0 || min.height > 0 || max.width > 0 || max.height > 0)
&& (min.width == max.width || min.height == max.height))
|| client_get_parent(c);
&& (min.width == max.width || min.height == max.height));
}

static inline int
Expand Down Expand Up @@ -226,7 +236,7 @@ client_send_close(Client *c)
return;
}
#endif
wlr_xdg_toplevel_send_close(c->surface.xdg);
wlr_xdg_toplevel_send_close(c->surface.xdg->toplevel);
}

static inline void
Expand All @@ -238,7 +248,7 @@ client_set_fullscreen(Client *c, int fullscreen)
return;
}
#endif
wlr_xdg_toplevel_set_fullscreen(c->surface.xdg, fullscreen);
wlr_xdg_toplevel_set_fullscreen(c->surface.xdg->toplevel, fullscreen);
}

static inline uint32_t
Expand All @@ -251,7 +261,7 @@ client_set_size(Client *c, uint32_t width, uint32_t height)
return 0;
}
#endif
return wlr_xdg_toplevel_set_size(c->surface.xdg, width, height);
return wlr_xdg_toplevel_set_size(c->surface.xdg->toplevel, width, height);
}

static inline void
Expand All @@ -261,7 +271,7 @@ client_set_tiled(Client *c, uint32_t edges)
if (client_is_x11(c))
return;
#endif
wlr_xdg_toplevel_set_tiled(c->surface.xdg, edges);
wlr_xdg_toplevel_set_tiled(c->surface.xdg->toplevel, edges);
}

static inline struct wlr_surface *
Expand Down
14 changes: 7 additions & 7 deletions config.def.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/* appearance */
static const int sloppyfocus = 1; /* focus follows mouse */
static const unsigned int borderpx = 1; /* border pixel of windows */
static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */
static const float rootcolor[] = {0.3, 0.3, 0.3, 1.0};
static const float bordercolor[] = {0.5, 0.5, 0.5, 1.0};
static const float focuscolor[] = {1.0, 0.0, 0.0, 1.0};
static const int sloppyfocus = 1; /* focus follows mouse */
static const int bypass_surface_visibility = 0; /* 1 means idle inhibitors will disable idle tracking even if it's surface isn't visible */
static const unsigned int borderpx = 1; /* border pixel of windows */
static const float rootcolor[] = {0.3, 0.3, 0.3, 1.0};
static const float bordercolor[] = {0.5, 0.5, 0.5, 1.0};
static const float focuscolor[] = {1.0, 0.0, 0.0, 1.0};
/* To conform the xdg-protocol, set the alpha to zero to restore the old behavior */
static const float fullscreen_bg[] = {0.1, 0.1, 0.1, 1.0};
static const float fullscreen_bg[] = {0.1, 0.1, 0.1, 1.0};

/* tagging */
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
Expand Down
2 changes: 1 addition & 1 deletion config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ XWAYLAND =
XLIBS =
# Uncomment to build XWayland support
#XWAYLAND = -DXWAYLAND
#XLIBS = xcb
#XLIBS = xcb xcb-icccm
Loading