During discussion it was decided that it would be better to use more
traditional constants for True/False in X11 calls after all.
This effectively fixes-up the changes made by e8fcdbfe9.
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
X API calls for some reason were missed in previous commits.
Note: Traditionally X Api uses "True" and "False" definitions, but for
consistency with the rest of code base it would be better to use modern
counterparts.
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
Some applications (like xfce4-terminal) try to manage their sizes by requesting the window manager a different size. The WM responds by resizing the window and the application tries once again to adjust its own size. This can lead to a repeated loop of request-resize which results in the application window to either shrink to the minimum allowed size or expand to the display size.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
This commit is a squash of the commits of TDE/tdebase#331.
In short, this backports some improvements to existing electric border
functionality from KDE, adds the snap tiling (or aerosnap) feature and
brings rudimentary support for active corners, which will be fully
implemented in a later PR.
The options dialog and the documentation has been updated to reflect
these changes.
Additionally, a new relevant option is introduced: an option for
restoring the original size of maximized/tiled windows when the user
starts dragging them. The option is set to be off by default,
preserving the traditional behaviour of KDE 3.x/TDE.
Last but not least, the term "electric" in relation to borders and
corners is replaced by "active" for clarity to the users.
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>