mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-06-19 14:33:16 -04:00
opt: ov_tab_mode not conflict ov_jump_mode
This commit is contained in:
parent
fb5360f053
commit
adc1239075
3 changed files with 9 additions and 6 deletions
|
|
@ -1728,10 +1728,11 @@ void applyrules(Client *c) {
|
|||
// the hit size
|
||||
if (!c->iscustompos &&
|
||||
(!client_is_x11(c) || (c->geom.x == 0 && c->geom.y == 0))) {
|
||||
struct wlr_box pending_center_geom = c->iscustomsize ? c->float_geom : c->geom;
|
||||
struct wlr_box pending_center_geom =
|
||||
c->iscustomsize ? c->float_geom : c->geom;
|
||||
c->float_geom = c->geom =
|
||||
setclient_coordinate_center(c, mon, pending_center_geom, 0, 0);
|
||||
} else if(!c->iscustomsize) {
|
||||
} else if (!c->iscustomsize) {
|
||||
c->float_geom = c->geom;
|
||||
}
|
||||
|
||||
|
|
@ -4251,8 +4252,8 @@ void keypress(struct wl_listener *listener, void *data) {
|
|||
wlr_idle_notifier_v1_notify_activity(idle_notifier, seat);
|
||||
|
||||
// ov tab mode detect moe key release
|
||||
if (config.ov_tab_mode && !locked && group == kb_group &&
|
||||
event->state == WL_KEYBOARD_KEY_STATE_RELEASED &&
|
||||
if (config.ov_tab_mode && !selmon->is_jump_mode && !locked &&
|
||||
group == kb_group && event->state == WL_KEYBOARD_KEY_STATE_RELEASED &&
|
||||
(keycode == 133 || keycode == 37 || keycode == 64 || keycode == 50 ||
|
||||
keycode == 134 || keycode == 105 || keycode == 108 || keycode == 62) &&
|
||||
selmon && selmon->sel) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue