Commit graph

18 commits

Author SHA1 Message Date
Johan Malm
166ad6e1dc Refactor header files 2020-09-25 20:25:45 +01:00
Johan Malm
4ecc5efa73 deco: refactor button code
- Make the height+width of buttons the same as the title bar.
- Center icons within the 'button space'
- Show button background color on hover (just hard-coded grey for now)
2020-09-21 19:24:27 +01:00
Johan Malm
b46fa5e006 xwayland: constrain view to top/left edge 2020-09-17 21:11:54 +01:00
Johan Malm
090e78b85a view: add 'struct border margin'
Simplify various view interfaces as a result
2020-09-15 20:41:01 +01:00
Johan Malm
97c29987e2 deco.c: add enum end-marker 2020-09-02 21:04:31 +01:00
Johan Malm
a042aad9f6 xwl.c: only add surfaces to view-list on first map
X11 apps produce surfaces which are never mapped. Excluding these from
the view-list simplifices the code.
2020-08-31 08:33:23 +01:00
Johan Malm
127eddfd96 Handle commit signal
wlr_surface can change during xwayland map/unmap, so let's only update
view width and height after commit signal has been received.
2020-08-31 08:12:44 +01:00
Johan Malm
83331e57ed Support inactive unpressed icons 2020-08-21 20:35:06 +01:00
Johan Malm
814ea5cb11 deco: add missing return type 2020-08-19 21:06:27 +01:00
Johan Malm
41b60e1cae src/deco.c: add some defence 2020-08-19 20:51:26 +01:00
Johan Malm
042c157378 Track server-side-decoration per view 2020-08-06 14:51:45 +01:00
Johan Malm
2297e43cc0 Base rc.title_height on font vertical extents 2020-08-05 20:14:17 +01:00
Johan Malm
4d1363dcae include/: refactor header files more 2020-08-03 20:56:38 +01:00
Johan Malm
f7fa28ab42 Render close, iconify and maximize buttons 2020-07-06 21:58:51 +01:00
Johan Malm
baca410560 Render window close button 2020-06-29 19:27:59 +01:00
Johan Malm
6e0d11bff5 Adjust xdg-shell view position on first map 2020-06-01 19:42:15 +01:00
Johan Malm
c07acc9ee6 Add deco parts top, right and bottom 2020-05-30 21:28:17 +01:00
Johan Malm
d28465dfc3 Put code in src/ and include/ 2020-05-27 14:29:05 +01:00
Renamed from deco.c (Browse further)