mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-10 13:29:55 -05:00
opt: format main code
This commit is contained in:
parent
92e02d64b6
commit
5836d6b89f
1 changed files with 3 additions and 3 deletions
|
|
@ -4532,8 +4532,7 @@ mapnotify(struct wl_listener *listener, void *data) {
|
||||||
if (client_is_unmanaged(c)) {
|
if (client_is_unmanaged(c)) {
|
||||||
/* Unmanaged clients always are floating */
|
/* Unmanaged clients always are floating */
|
||||||
wlr_scene_node_reparent(&c->scene->node, layers[LyrFloat]);
|
wlr_scene_node_reparent(&c->scene->node, layers[LyrFloat]);
|
||||||
wlr_scene_node_set_position(&c->scene->node, c->geom.x,
|
wlr_scene_node_set_position(&c->scene->node, c->geom.x, c->geom.y);
|
||||||
c->geom.y);
|
|
||||||
if (client_wants_focus(c)) {
|
if (client_wants_focus(c)) {
|
||||||
focusclient(c, 1);
|
focusclient(c, 1);
|
||||||
exclusive_focus = c;
|
exclusive_focus = c;
|
||||||
|
|
@ -7776,7 +7775,8 @@ void xwaylandready(struct wl_listener *listener, void *data) {
|
||||||
static void setgeometrynotify(struct wl_listener *listener, void *data) {
|
static void setgeometrynotify(struct wl_listener *listener, void *data) {
|
||||||
Client *c = wl_container_of(listener, c, set_geometry);
|
Client *c = wl_container_of(listener, c, set_geometry);
|
||||||
|
|
||||||
wlr_scene_node_set_position(&c->scene->node, c->surface.xwayland->x, c->surface.xwayland->y);
|
wlr_scene_node_set_position(&c->scene->node, c->surface.xwayland->x,
|
||||||
|
c->surface.xwayland->y);
|
||||||
motionnotify(0, NULL, 0, 0, 0, 0);
|
motionnotify(0, NULL, 0, 0, 0, 0);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue