mirror of
https://github.com/brl/mutter.git
synced 2025-02-16 13:24:09 +00:00
keybindings: Fix code style
This commit is contained in:
parent
9402691aaa
commit
c45f616fdc
@ -2516,21 +2516,27 @@ handle_move_to_corner_backend (MetaDisplay *display,
|
|||||||
meta_window_get_frame_rect (window, &frame_rect);
|
meta_window_get_frame_rect (window, &frame_rect);
|
||||||
meta_window_get_position (window, &orig_x, &orig_y);
|
meta_window_get_position (window, &orig_x, &orig_y);
|
||||||
|
|
||||||
if (xchange) {
|
if (xchange)
|
||||||
new_x = work_area.x + (to_right ?
|
{
|
||||||
work_area.width - frame_rect.width :
|
new_x = work_area.x + (to_right ?
|
||||||
0);
|
work_area.width - frame_rect.width :
|
||||||
} else {
|
0);
|
||||||
new_x = orig_x;
|
}
|
||||||
}
|
else
|
||||||
|
{
|
||||||
|
new_x = orig_x;
|
||||||
|
}
|
||||||
|
|
||||||
if (ychange) {
|
if (ychange)
|
||||||
new_y = work_area.y + (to_bottom ?
|
{
|
||||||
work_area.height - frame_rect.height :
|
new_y = work_area.y + (to_bottom ?
|
||||||
0);
|
work_area.height - frame_rect.height :
|
||||||
} else {
|
0);
|
||||||
new_y = orig_y;
|
}
|
||||||
}
|
else
|
||||||
|
{
|
||||||
|
new_y = orig_y;
|
||||||
|
}
|
||||||
|
|
||||||
meta_window_move_frame (window,
|
meta_window_move_frame (window,
|
||||||
TRUE,
|
TRUE,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user