69e314207d
internal: replace INT_MAX with WORKSPACE_INVALID
2023-11-12 13:34:54 +00:00
Philip Damianik
442209942f
cleanup: Replace find() with C++20 starts_with(), ends_with() and contains() ( #3572 )
...
* Replace find() with C++20 starts_with() and ends_with()
* Replace find() with C++20 contains()
2023-10-15 19:07:23 +01:00
memchr
bc41d7ec85
fix: inconsistent behaviour where last workspace was not saved ( #3261 )
2023-09-11 23:39:24 +01:00
Philip Damianik
8c83852704
internal: Remove all .c_str()
calls when using std::vformat
( #3198 )
...
Signed-off-by: pdamianik <39028343+pdamianik@users.noreply.github.com>
2023-09-06 21:45:37 +02:00
Vaxry
61a71c65ac
internal: Formatter rework ( #3186 )
2023-09-06 12:51:36 +02:00
end-4
17ea7db23a
gestures: Swipe direction lock ( #3052 )
2023-08-23 22:40:19 +02:00
end-4
37a211a2ae
animations: add slidefade and slidefadevert styles for workspaces ( #3008 )
...
* add slidefade and slidefadevert animations
* fix swiping for slidefadevert
* rename minPerc to movePerc for slidefade anim styles
* change default slidefade percentage to 100%
* remove useless comments
* findlastof + 1
* debug logging for slidefade/slidefadevert percentage
2023-08-17 22:30:20 +02:00
vaxerski
07d7962c7f
swipe: fix mixup of r/m
2023-07-04 12:34:22 +02:00
vaxerski
86ca283352
gestures: add workspace_swipe_use_r
2023-07-01 16:30:36 +02:00
vaxerski
287e6c4ede
internal: workspace manip handling rework
2023-04-14 15:03:53 +01:00
Andrew Pritchard
dfb78e0593
Fix swiping onto a new workspace with multiple monitors. ( #1971 )
...
The previous code could run into issues into the following circumstances:
* The focused monitor is on its rightmost workspace with ID `i`.
* Another monitor has a workspace with ID `i+1`.
* `workspace_swipe_create_new` is enabled.
Then, swiping rightwards attempts to target a new workspace with ID
`i+1`: completing the swipe gesture unintentionally focuses that
workspace on whichever monitor it's already on while leaving the active
monitor in a broken state where it shows no windows but creates new
windows on the workspace it was previously on; and cancelling the swipe
gesture shifts the entire workspace `i+1` to the right by the width of
the active monitor.
By choosing an ID that doesn't exist, this problematic behavior is
avoided. More specifically, it's the smallest ID greater than any
existing workspace's ID, because otherwise the new workspace that was
seemingly just created to the right of the rightmost workspace could end
up somewhere in the middle of the workspace order.
2023-04-07 12:18:53 +01:00
vaxerski
569eaff04c
swipe: block on locked session
2023-04-07 11:51:52 +01:00
cb98242ea7
remove old comment and fixup lsl var name
2023-01-22 17:03:25 +01:00
96198dae55
Normalize color storage
...
Colors are now normalized to 0 - 1 values instead of 0 - 255
causes calculations to be simpler and generally cleans up the codebase.
2023-01-05 19:25:45 +01:00
cd08fa22fd
added workspace_swipe_numbered
2022-12-25 15:42:11 +00:00
Vaxry
98a4fa2b0d
Added clang format ( #1239 )
...
* clang-format stuff and format files
2022-12-16 17:17:31 +00:00
vaxerski
0a302901d2
Added handling more special workspaces
2022-11-27 22:42:22 +00:00
CactiChameleon9
f00b2fd509
Fix swiping on the first workspace going to the last ( #1067 )
2022-11-21 23:30:26 +00:00
d0e47d9fe0
added workspace_swipe_forever
2022-11-03 13:35:34 +00:00
603a90886f
fix swipe on 2 detached workspaces
2022-11-02 10:01:13 +00:00
vaxerski
6df6aea1ba
fix swipe with fullscreen maximized
2022-10-20 20:37:37 +01:00
dada872981
minor swipe on new fixes
2022-10-20 17:52:17 +01:00
1eec5161bd
minor fix for swipes from empty workspaces
2022-10-20 15:47:35 +01:00
53c3644c29
fix minor anim issue with swipe new
2022-10-20 15:02:46 +01:00
6d66dde208
added swipe create new
2022-10-20 14:54:32 +01:00
a19b152e4a
make swipe respect slidevert
2022-10-07 16:52:53 +01:00
7c809a3059
fullscreen animation en-nice-ment
2022-09-19 10:23:13 +01:00
a72a39ebd5
minor swipe fixes
2022-09-17 15:05:12 +01:00
vaxerski
f663fa209c
minor code styling fixes
2022-09-09 19:08:11 +02:00
vaxerski
ed2cacc5d5
fix styling in const ptrs
2022-08-27 21:37:35 +02:00
946222f4a7
fix typo in swipe alpha control
2022-08-19 17:42:10 +02:00
504d07a87d
fix swipe on workspace style fade
2022-08-19 17:36:01 +02:00
317b6c430c
damage monitor on workspace swipe end
2022-08-16 16:34:36 +02:00
8e5985d70e
clean up unconstraining logic
2022-08-09 20:36:21 +02:00
vaxerski
1455442b9a
fix swipe not cancelling constraints
2022-07-26 18:38:30 +02:00
vaxerski
14176f01ca
fix swiping with one workspace on monitor
2022-07-25 15:42:27 +02:00
vaxerski
3e6abaf680
fix some swipe issues
2022-07-25 14:06:49 +02:00
vaxerski
fa1273f258
minor changes to swipes
2022-07-22 00:13:56 +02:00
vaxerski
8f66ddcad0
minor changes to swipes
2022-07-22 00:10:26 +02:00
vaxerski
4db1062af6
minor changes to swipes
2022-07-22 00:08:25 +02:00
vaxerski
1ba600ca23
added workspace swipe fingers
2022-07-19 18:35:24 +02:00
vaxerski
0026414f9b
fix workspace swipes mistake
2022-07-19 18:30:53 +02:00
vaxerski
96f19d706a
fix possible swipe crash
2022-07-07 20:53:22 +02:00
vaxerski
22c4ecf496
fixed swiping with one ws
2022-07-07 13:57:26 +02:00
vaxerski
4b796d30c1
Added swipe workspace gestures
2022-07-07 13:49:04 +02:00