mirror of
https://github.com/swaywm/sway.git
synced 2026-04-22 06:46:27 -04:00
Remove redundant checks
This commit is contained in:
parent
3af52d86f7
commit
813e120979
3 changed files with 3 additions and 4 deletions
|
|
@ -334,8 +334,7 @@ static void handle_button(struct sway_seat *seat, uint32_t time_msec,
|
|||
if (cont && is_floating_or_child && !is_fullscreen_or_child &&
|
||||
state == WLR_BUTTON_PRESSED) {
|
||||
uint32_t btn_move = config->floating_mod_inverse ? BTN_RIGHT : BTN_LEFT;
|
||||
if (button == btn_move && state == WLR_BUTTON_PRESSED &&
|
||||
(mod_pressed || on_titlebar)) {
|
||||
if (button == btn_move && (mod_pressed || on_titlebar)) {
|
||||
while (cont->parent) {
|
||||
cont = cont->parent;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue