mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-06-16 14:33:36 -04:00
opt: fix scan out support for fullscreen
This commit is contained in:
parent
b2aad5f8b1
commit
23121f3021
2 changed files with 18 additions and 4 deletions
|
|
@ -297,7 +297,7 @@ void apply_split_border(Client *c, bool hit_no_border) {
|
||||||
const Layout *layout = c->mon->pertag->ltidxs[c->mon->pertag->curtag];
|
const Layout *layout = c->mon->pertag->ltidxs[c->mon->pertag->curtag];
|
||||||
|
|
||||||
if (hit_no_border || !ISTILED(c) || layout->id != DWINDLE ||
|
if (hit_no_border || !ISTILED(c) || layout->id != DWINDLE ||
|
||||||
!config.dwindle_manual_split) {
|
!config.dwindle_manual_split || c->isfullscreen) {
|
||||||
if (c->splitindicator[0]->node.enabled) {
|
if (c->splitindicator[0]->node.enabled) {
|
||||||
wlr_scene_node_set_enabled(&c->splitindicator[0]->node, false);
|
wlr_scene_node_set_enabled(&c->splitindicator[0]->node, false);
|
||||||
}
|
}
|
||||||
|
|
@ -377,12 +377,25 @@ void apply_split_border(Client *c, bool hit_no_border) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void apply_border(Client *c) {
|
void apply_border(Client *c) {
|
||||||
bool hit_no_border = false;
|
|
||||||
|
|
||||||
if (c->iskilling || !client_surface(c)->mapped)
|
if (c->iskilling || !client_surface(c)->mapped)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
hit_no_border = check_hit_no_border(c);
|
if (c->isfullscreen) {
|
||||||
|
for (int32_t i = 0; i < 4; i++) {
|
||||||
|
if (c->border[i]->node.enabled) {
|
||||||
|
wlr_scene_node_set_enabled(&c->border[i]->node, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
for (int32_t i = 0; i < 4; i++) {
|
||||||
|
if (!c->border[i]->node.enabled) {
|
||||||
|
wlr_scene_node_set_enabled(&c->border[i]->node, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
bool hit_no_border = check_hit_no_border(c);
|
||||||
|
|
||||||
apply_split_border(c, hit_no_border);
|
apply_split_border(c, hit_no_border);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5526,6 +5526,7 @@ void setfullscreen(Client *c, int32_t fullscreen) // 用自定义全屏代理自
|
||||||
wlr_scene_node_raise_to_top(&c->scene->node); // 将视图提升到顶层
|
wlr_scene_node_raise_to_top(&c->scene->node); // 将视图提升到顶层
|
||||||
if (!is_scroller_layout(c->mon) || c->isfloating)
|
if (!is_scroller_layout(c->mon) || c->isfloating)
|
||||||
resize(c, c->mon->m, 1);
|
resize(c, c->mon->m, 1);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
c->bw = c->isnoborder ? 0 : config.borderpx;
|
c->bw = c->isnoborder ? 0 : config.borderpx;
|
||||||
if (c->isfloating)
|
if (c->isfloating)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue