Commit graph

31 commits

Author SHA1 Message Date
tiosgz
d5352862bb Update pointer focus more often
Until now, focusing a different view didn't move pointer focus to it,
even though it was under the cursor. The pointer had to move in order
to switch its focus. Similar situations should be handled after this
commit.
2021-09-05 10:51:58 +00:00
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
cf228a0819 Move stuff into output_damage() function 2021-08-15 17:07:54 +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
a72528ea68 Add renderer 2020-01-26 19:18:52 +00:00
buffet
0c6435c42e Add view:csd 2020-01-21 19:48:50 +00:00
buffet
e298ad6f44 Add imove and iresize events, and view:imove, view:iresize 2020-01-20 23:21:17 +00:00
buffet
43f5de3d7c Add view:title, view:app_id, view:pid 2020-01-19 23:36:12 +00:00
buffet
06efda3a03 Respect layers for cursor motion 2020-01-19 19:45:13 +00:00
buffet
da1b0d2bea Fix geometry 2020-01-19 18:10:18 +00:00
buffet
e4e88df667 Focus layer-shell 2020-01-18 19:38:47 +00:00
buffet
9732952cc4 Move seat into extra file 2020-01-18 15:56:12 +00:00
buffet
89e9046ccc Add interactive move and rudamentary resize 2020-01-17 19:51:56 +00:00
buffet
5d9ebb43d0 Add view:size 2020-01-08 22:26:17 +00:00
buffet
e75b462fc1 Make view:tiled user configurable 2020-01-08 17:24:13 +00:00
buffet
a2b4bd58ae Rename view_resize to view_set_size 2020-01-08 16:39:20 +00:00
buffet
0d6965192c Add view:tiled 2020-01-07 15:10:51 +00:00
buffet
b80f1ca27f Add view:pos and view:resize 2020-01-04 23:54:55 +00:00
buffet
c1190ac355 Add missing assignment to focused_view 2020-01-03 20:46:06 +00:00
buffet
ca69adf365 Add view destroy event 2020-01-02 23:39:15 +00:00
buffet
77f7d14fe1 Add hidden, hide and show to views 2020-01-01 18:10:42 +00:00
Tadeo Kondrak
f3190f2eb8
Rename focus_view to view_focus
For consistency with the other functions.
2019-12-30 22:24:58 -07:00
Tadeo Kondrak
440adaaaff
Add ForEachMacros to .clang-format
So it doesn't add a linebreak after them.
2019-12-30 21:46:50 -07:00
buffet
0405fbe14d Add view_close 2019-12-30 23:23:35 +00:00
Tadeo Kondrak
5892347df4 Fix lack of return from function (#14) 2019-12-29 10:39:53 +00:00
buffet
a25ff1957b Add basic cursor handling (including focusing clients) 2019-12-26 20:55:10 +00:00
buffet
1d61d1ac1a Move view creation code into view_create 2019-12-24 17:09:16 +00:00
buffet
abda3d3a0e Add auto focus for views and basic keyboard handling 2019-12-24 15:43:36 +00:00
buffet
be373177db Support xdg-shell and add basic rendering 2019-12-21 14:10:50 +00:00