1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-12 03:35:52 +01:00

wmaker: Add more directions for window snapping.

This patch adds the ability to "snap" a window to the top, bottom, or any of the
four corners of the screen.  It uses three new helper functions, drawSnapFrame,
getSnapDirection, and doSnap, to reduce code duplication and increase
readability.

It also updates NEWS to indicate the additional directions.

Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
This commit is contained in:
Doug Torrance
2014-09-25 16:02:51 -05:00
committed by Carlos R. Mafra
parent da940a1e4d
commit 47ec274760
2 changed files with 148 additions and 56 deletions

4
NEWS
View File

@@ -7,8 +7,8 @@ NEWS for veteran Window Maker users
Window snapping
---------------
You can now "snap" a window, i.e., maximize it to the left or right half of the
screen, by dragging it to that side. It is enabled by setting
You can now "snap" a window, i.e., maximize it to a side or corner of the
screen, by dragging it to that side or corner. It is enabled by setting
"WindowSnapping = YES" in ~/GNUstep/Defaults/WindowMaker or selecting "Enable
window snapping" under "Expert User Preferences" in WPrefs.app.