mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-10-29 05:40:21 -04:00
opt: maximize and fullscreen not allow become drag window
This commit is contained in:
parent
f4de69abf6
commit
ff1fd71911
1 changed files with 4 additions and 1 deletions
|
|
@ -293,8 +293,11 @@ moveresize(const Arg *arg) {
|
||||||
if (cursor_mode != CurNormal && cursor_mode != CurPressed)
|
if (cursor_mode != CurNormal && cursor_mode != CurPressed)
|
||||||
return;
|
return;
|
||||||
xytonode(cursor->x, cursor->y, NULL, &grabc, NULL, NULL, NULL);
|
xytonode(cursor->x, cursor->y, NULL, &grabc, NULL, NULL, NULL);
|
||||||
if (!grabc || client_is_unmanaged(grabc) || grabc->isfullscreen)
|
if (!grabc || client_is_unmanaged(grabc) || grabc->isfullscreen ||
|
||||||
|
grabc->ismaxmizescreen) {
|
||||||
|
grabc = NULL;
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
/* Float the window and tell motionnotify to grab it */
|
/* Float the window and tell motionnotify to grab it */
|
||||||
if (grabc->isfloating == 0 && arg->ui == CurMove) {
|
if (grabc->isfloating == 0 && arg->ui == CurMove) {
|
||||||
grabc->drag_to_tile = true;
|
grabc->drag_to_tile = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue