mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-16 14:15:46 +01:00
wmaker: code style
This patch removes some extra curly brackets, some empty lines, extra spaces, ... to follow wmaker's coding style
This commit is contained in:
committed by
Carlos R. Mafra
parent
29ccfbbf20
commit
4ac65ab260
@@ -838,23 +838,17 @@ static Bool checkWorkspaceChange(WWindow * wwin, MoveData * data, Bool opaqueMov
|
||||
|
||||
if (data->mouseX <= 1) {
|
||||
if (scr->current_workspace > 0) {
|
||||
|
||||
crossWorkspace(scr, wwin, opaqueMove, scr->current_workspace - 1, True);
|
||||
changed = True;
|
||||
data->rubCount = 0;
|
||||
|
||||
} else if (scr->current_workspace == 0 && wPreferences.ws_cycle) {
|
||||
|
||||
crossWorkspace(scr, wwin, opaqueMove, scr->workspace_count - 1, True);
|
||||
changed = True;
|
||||
data->rubCount = 0;
|
||||
}
|
||||
} else if (data->mouseX >= scr->scr_width - 2) {
|
||||
|
||||
if (scr->current_workspace == scr->workspace_count - 1) {
|
||||
|
||||
if (wPreferences.ws_cycle || scr->workspace_count == MAX_WORKSPACES) {
|
||||
|
||||
crossWorkspace(scr, wwin, opaqueMove, 0, False);
|
||||
changed = True;
|
||||
data->rubCount = 0;
|
||||
@@ -883,7 +877,6 @@ static Bool checkWorkspaceChange(WWindow * wwin, MoveData * data, Bool opaqueMov
|
||||
data->rubCount = 0;
|
||||
}
|
||||
} else if (scr->current_workspace < scr->workspace_count) {
|
||||
|
||||
/* go to next workspace */
|
||||
crossWorkspace(scr, wwin, opaqueMove, scr->current_workspace + 1, False);
|
||||
changed = True;
|
||||
@@ -1394,16 +1387,18 @@ int wKeyboardMoveResizeWindow(WWindow * wwin)
|
||||
|
||||
if (wPreferences.ws_cycle) {
|
||||
if (src_x + off_x + ww < 20) {
|
||||
if (!scr->current_workspace) {
|
||||
if (!scr->current_workspace)
|
||||
wWorkspaceChange(scr, scr->workspace_count - 1);
|
||||
} else
|
||||
else
|
||||
wWorkspaceChange(scr, scr->current_workspace - 1);
|
||||
|
||||
off_x += scr_width;
|
||||
} else if (src_x + off_x + 20 > scr_width) {
|
||||
if (scr->current_workspace == scr->workspace_count - 1) {
|
||||
if (scr->current_workspace == scr->workspace_count - 1)
|
||||
wWorkspaceChange(scr, 0);
|
||||
} else
|
||||
else
|
||||
wWorkspaceChange(scr, scr->current_workspace + 1);
|
||||
|
||||
off_x -= scr_width;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user