Commit graph

285 commits

Author SHA1 Message Date
tiosgz
d69ccc7bdd Only render mapped surfaces
This targets only surfaces under kiwmi_view, thus only XDG shell. Other
surfaces to be fixed later.

The new code here is copied over from wlroots, with only small
modifications.
2021-08-27 13:13:37 +00:00
tiosgz
ed1ff6a1d3 Handle XDG popups and subsurfaces
This commit ensures that they also cause output damage to happen and
that popups are moved into the visible area.

I browsed the source code of Sway while writing this and took a lot of
inspiration and help from there.
2021-08-27 13:06:55 +00:00
buffet
bb9c2936fa Fix format CI test 2021-08-26 12:42:18 +00:00
buffet
67aa129ffc Add build passing shield
Looks good
2021-08-18 18:43:25 +00:00
buffet
90ab062a01 Add --werror for CI, to make it easier to spot stuff 2021-08-18 18:32:50 +00:00
buffet
cf228a0819 Move stuff into output_damage() function 2021-08-15 17:07:54 +00:00
buffet
ab98bfbc5f Damage output when layer-shell surface updates 2021-08-15 17:00:06 +00:00
buffet
8772b45583 Don't redraw on cursor movements unless required 2021-08-14 21:31:31 +00:00
buffet
ad49bd2541 Clean up damage tracking code a little 2021-08-14 21:04:23 +00:00
buffet
99743e7e2b Redraw twice on damage (even more hacky) 2021-08-14 20:25:15 +00:00
buffet
70376c9762 Damage on move and resize 2021-08-14 20:06:00 +00:00
buffet
b832975c6d Add hacky lazy damage tracking implementation 2021-08-14 19:44:20 +00:00
buffet
9c7d848ce5 Add scoll event 2021-08-14 18:42:35 +00:00
buffet
ef3ce0d1c5 Add cirrus CI 2021-08-13 17:59:54 +00:00
buffet
bca880ac27 Add note about kiwmic 2021-08-13 17:59:54 +00:00
Niclas
b55a278c42
Merge pull request #37 from tiosgz/bg-paint
kiwmi:bg_color()
2021-08-13 17:44:37 +00:00
Niclas
612cd86875
Merge pull request #36 from tiosgz/verbosity
Add controls for verbosity level
2021-08-13 17:43:20 +00:00
tiosgz
f1c2262ff6 Add controls for verbosity level
This allows the config to be exactly as verbose as kiwmi, or to change
the verbosity level at runtime (e.g. using kiwmic).

It uses numbers, because they are much easier to handle on both sides
and add only little inconvenience to the user.
2021-08-13 13:46:35 +00:00
tiosgz
f5ee33d887 kiwmi:bg_color() 2021-08-13 08:36:00 +00:00
buffet
465904a2d5 Fix meson indent in editorconfig 2021-08-12 11:54:25 +00:00
Niclas
02e80846ae
Merge pull request #35 from tiosgz/editorconfig
Add an editorconfig file
2021-08-12 08:47:56 +00:00
Niclas
d62f595aef
Merge pull request #32 from tiosgz/usable-area
kiwmi_output:usable_area() and :on("usable_area_change")
2021-08-12 08:45:30 +00:00
tiosgz
76f1bc00eb Add an editorconfig file 2021-08-11 20:34:41 +00:00
tiosgz
ea13f7d7c5 kiwmi_output:usable_area() and :on("usable_area_change") 2021-08-11 20:30:14 +00:00
Niclas
5a5cc4c425
Merge pull request #34 from tiosgz/layer-shell-pos
Do not add output position twice when rendering
2021-08-11 20:17:12 +00:00
tiosgz
d1d0cb84d1 Do not add output position twice when rendering
The renderer already uses output-local positions.
2021-08-11 18:49:15 +00:00
buffet
5e492bc75a Add lua dependency 2021-08-11 17:39:42 +00:00
buffet
e0142de81c Add view:id() 2021-08-10 19:26:34 +00:00
buffet
7393f5abe5 Fix small bug 2021-08-09 19:20:11 +00:00
buffet
25cf3d50c4 Add FROM_KIWMIC 2021-08-09 19:09:48 +00:00
buffet
bc19aa6817 Add link to docs to the readme 2021-08-09 18:58:16 +00:00
buffet
579e7aa004 Add kiwmi:unfocus(), clang-format 2021-08-09 18:55:01 +00:00
Niclas
724923e5ff
Merge pull request #31 from tiosgz/clipboard
Add clipboard (& other stuff) support
2021-08-02 20:44:19 +00:00
buffet
3603fbe8ea Add kiwmi:active_output() 2021-08-01 22:04:32 +00:00
buffet
37b6ff399d Add request_active_output event 2021-08-01 21:58:07 +00:00
tiosgz
c3ea13d9be Add gamma control support 2021-08-01 16:41:03 +00:00
tiosgz
ecbc88c643 Add clipboard and clipboard management support 2021-08-01 16:01:57 +00:00
buffet
d3c5bb27e5 Fix bad self on cursor:output_at_pos 2021-07-30 20:49:39 +00:00
buffet
4026cd0ef0 Add kiwmi:output_at, cursor:output_at_pos, use lx, ly more consistenty 2021-07-30 20:36:26 +00:00
buffet
7e674b3f72 Add kiwmi.desktop 2021-07-30 19:46:58 +00:00
Niclas
e32ac776f6
Merge pull request #30 from tiosgz/render-fix
[output render] Assign to variables before they are used by wlroots
2021-07-30 17:51:51 +00:00
Niclas
d6e13773ac
Merge pull request #29 from tiosgz/wlr-0.13
Fix incompatibilities with wlroots 0.13
2021-07-30 17:51:43 +00:00
tiosgz
d59c7e6b0c Avoid unnecessary layer arrangement
Plus restore alphabetical order
2021-06-19 10:20:35 +00:00
tiosgz
8595f18d9b Assign to variables before they are used by wlroots 2021-05-14 15:43:56 +00:00
tiosgz
aa22efcfe8 Fix incompatibilities with wlroots 0.13 2021-04-24 11:53:05 +00:00
Niclas
c7a60fe2e8
Merge pull request #27 from tiosgz/fix-view-app-id
Fix: Return view's app_id when asked for app_id
2020-10-11 17:11:08 +00:00
Bohdan Potměkleč
c59f4f6c3b Fix: Return view's app_id instead of title when asked 2020-10-11 16:15:49 +00:00
buffet
cd7cfae770 Differentiate between raw and translated keysyms 2020-08-27 20:48:15 +00:00
buffet
fb9258c0ae Add tostring to IPC results 2020-08-27 14:26:58 +00:00
gk
56cf645689
Fix misspelling (#23)
funtcion -> function
2020-08-18 13:59:07 +00:00