mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-23 21:37:53 -04:00
fix: cransh in disable monitor when use scratchpad
This commit is contained in:
parent
adeaaada45
commit
9e4fade55e
3 changed files with 10 additions and 2 deletions
|
|
@ -1,5 +1,12 @@
|
|||
bool check_hit_no_border(Client *c) {
|
||||
bool hit_no_border = false;
|
||||
|
||||
if (!c->mon)
|
||||
return false;
|
||||
|
||||
if (c->tags <= 0)
|
||||
return false;
|
||||
|
||||
if (!render_border) {
|
||||
hit_no_border = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ uint32_t get_tags_first_tag_num(uint32_t source_tags) {
|
|||
tag = 0;
|
||||
|
||||
if (!source_tags) {
|
||||
return selmon->pertag->curtag;
|
||||
return 0;
|
||||
}
|
||||
|
||||
for (i = 0; !(tag & 1) && source_tags != 0 && i < LENGTH(tags); i++) {
|
||||
|
|
|
|||
|
|
@ -6389,7 +6389,8 @@ void updatemons(struct wl_listener *listener, void *data) {
|
|||
c->geom.x += mon_pos_offsetx;
|
||||
c->geom.y += mon_pos_offsety;
|
||||
c->float_geom = c->geom;
|
||||
resize(c, c->geom, 1);
|
||||
if (VISIBLEON(c, m))
|
||||
resize(c, c->geom, 1);
|
||||
}
|
||||
|
||||
// restore window to old monitor
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue