Johan Malm
82e47ac1f5
Remove src/common/log.c
...
Use wlr_log() instead
2021-07-23 21:15:55 +01:00
Johan Malm
0eac290d54
Handle alt + cursor button outside view
2021-07-21 19:27:11 +01:00
Johan Malm
743803de3b
cursor: initialize view_area
...
...to avoid inadvertantly triggering close/minimize/maximize
2021-07-12 19:59:19 +01:00
Johan Malm
ee15a5fe56
cursor: handle button press on layer-surface (issue #41 )
2021-07-12 16:44:30 +01:00
Johan Malm
97a5695ccb
cursor: do not pass _press_ to client when alt held
2021-07-09 22:29:48 +01:00
Johan Malm
b194881ac2
cursor: handle alt + mouse button (issue #40 )
...
Move view on alt + left mouse button
Resize view on alt + right mouse button
2021-07-09 21:58:54 +01:00
Mikhail Kshevetskiy
00db22e44f
focus: add basic follow mouse support
2021-05-28 21:25:19 +01:00
Johan Malm
91374e09c0
cursor: damage output on pressing view
2021-03-26 20:12:01 +00:00
Johan Malm
fc76100fd5
Add ssd.h
2021-03-21 20:54:55 +00:00
Johan Malm
a262b729df
Rename deco.c ssd.c
2021-03-20 14:41:39 +00:00
Johan Malm
2738ff2673
cursor: cursor_name fix
...
The current implementation detects resize edges over the wlr_surface,
sometimes preventing the correct cursor_name to be set.
2021-03-03 21:19:52 +00:00
Alex Bryan
f5f8acc543
Merge branch 'maximize'
2021-02-27 17:14:24 -05:00
Alex Bryan
5e7f2c91a3
Added basic maximize support for xdg and xwayland
2021-02-27 17:10:53 -05:00
Johan Malm
2ce58f2950
cursor.c: set cursor_name correctly when not over decoration
2021-02-27 19:26:13 +00:00
Johan Malm
133ea96f64
Simplify view margin/padding related code
...
Fix xdg-shell CSD resize bug
2021-02-27 16:55:10 +00:00
Johan Malm
0e69c9ee9f
cursor.c: set damage for changing button states
2021-02-15 18:04:04 +00:00
Johan Malm
54804fd3df
Implement damage tracking
2021-01-09 22:51:20 +00:00
Johan Malm
cb44f047f3
Add view_move()
2020-12-23 18:52:46 +00:00
Johan Malm
e0770a5672
Refactor view_move_resize()
2020-12-22 20:35:06 +00:00
Wenhua Zhao
860f949846
Do not overwrite cursor for app view
2020-11-29 08:03:44 +00:00
Wenhua Zhao
eee776de4f
Resize via dragging corners
2020-11-29 08:03:44 +00:00
Johan Malm
543f00131c
action: add "ShowMenu" option
...
Parse the following in rc.xml:
<keyboard>
<keybind key="">
<action name="ShowMenu">
<menu>root-menu</menu>
</action>
</keybind>
</keyboard>
2020-10-31 15:27:22 +00:00
Johan Malm
d5b9a65978
s/cursor_mode/input_mode/
2020-10-21 20:30:06 +01:00
Johan Malm
dc5d1ab976
Support a very simple root-menu
2020-10-19 22:14:17 +01:00
Johan Malm
f752610e0b
desktop: refactor desktop_focus_view()
2020-10-08 20:08:41 +01:00
Johan Malm
25829d122c
Refactor seat.c, keyboard.c, cursor.c
...
Use wlr_keyboard_group
2020-10-02 21:20:12 +01:00
Johan Malm
96e05057a3
Update .clang-format
...
Align with wlroots style
2020-09-28 20:41:41 +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
090e78b85a
view: add 'struct border margin'
...
Simplify various view interfaces as a result
2020-09-15 20:41:01 +01:00
Johan Malm
fb6f7d42a5
Add desktop.c
...
Move from view.c functions which work on server->views
2020-09-11 20:48:28 +01:00
Johan Malm
49e499d255
view: add functions view_{un,}minimize
2020-09-08 20:51:33 +01:00
Johan Malm
bf3e4aa8d5
Add view_impl .map and .unmap
...
Hook up iconify button to view->impl->unmap
2020-09-03 21:05:00 +01:00
Johan Malm
625722cb66
Add view_impl .close
2020-09-02 21:00:28 +01:00
Johan Malm
c07acc9ee6
Add deco parts top, right and bottom
2020-05-30 21:28:17 +01:00
Johan Malm
a6ac2a0439
Minor style fixes
2020-05-29 22:26:16 +01:00
Johan Malm
298d869092
Move server_new_output() to output.c
2020-05-29 22:18:03 +01:00
Johan Malm
bc5accb089
Rename some {cursor,keyboard}_ functions
2020-05-29 22:10:41 +01:00
Johan Malm
40d3e1b175
Add cursor.c
2020-05-29 21:36:12 +01:00