mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-28 21:37:28 -04:00
fix: fix layer always null in xytonode
This commit is contained in:
parent
b2bae99550
commit
483bd724b3
3 changed files with 3 additions and 3 deletions
|
|
@ -289,7 +289,7 @@ typedef struct {
|
||||||
double mouse_accel_speed;
|
double mouse_accel_speed;
|
||||||
double axis_scroll_factor;
|
double axis_scroll_factor;
|
||||||
|
|
||||||
/* tablet */
|
/* tablet */
|
||||||
char *tablet_map_to_mon;
|
char *tablet_map_to_mon;
|
||||||
|
|
||||||
/* Trackpad */
|
/* Trackpad */
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#include "dwl-ipc.h"
|
#include "dwl-ipc.h"
|
||||||
#include "ext-workspace.h"
|
#include "ext-workspace.h"
|
||||||
#include "foreign-toplevel.h"
|
#include "foreign-toplevel.h"
|
||||||
|
#include "tablet.h"
|
||||||
#include "tearing.h"
|
#include "tearing.h"
|
||||||
#include "text-input.h"
|
#include "text-input.h"
|
||||||
#include "tablet.h"
|
|
||||||
|
|
|
||||||
|
|
@ -131,8 +131,8 @@ void xytonode(double x, double y, struct wlr_surface **psurface, Client **pc,
|
||||||
for (pnode = node; pnode && !c; pnode = &pnode->parent->node)
|
for (pnode = node; pnode && !c; pnode = &pnode->parent->node)
|
||||||
c = pnode->data;
|
c = pnode->data;
|
||||||
if (c && c->type == LayerShell) {
|
if (c && c->type == LayerShell) {
|
||||||
|
l = (LayerSurface *)c;
|
||||||
c = NULL;
|
c = NULL;
|
||||||
l = pnode->data;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue