John Lindgren
2995d0e8e0
view: Fix positioning of initially-maximized XWayland views
...
map() in xwayland.c called ssd_create() but did not call
view_apply_maximized_geometry() afterward, resulting in the
decorations being displayed off-screen.
Rather than calling view_apply_maximized_geometry() in more places,
let's reuse the existing call in view_set_decorations(), and extend
ssd_update_geometry() to call ssd_create() when needed.
2022-11-20 19:10:05 +00:00
Consolatis
e30fce6c34
cursor: Use enum for server set cursor names
...
This mainly prevents having to use strcmp() on every mouse move.
2022-09-16 21:30:40 +01:00
John Lindgren
48fde32e62
ssd: Make ssd_get_part_type() work for corner buttons
...
Corner buttons (WINDOW_MENU and CLOSE) are one more level down in
the scene-tree (see add_scene_button_corner() in ssd_part.c).
This fixes a minor issue where, when right-clicking on the CLOSE
button, the client-menu would be displayed in the wrong location.
2022-09-09 15:23:13 -04:00
John Lindgren
ebd0a5d526
config: Redefine Title context to include blank areas of Titlebar
...
... and use Title for the Drag (Move) and DoubleClick (Maximize)
titlebar actions, which are unexpected when the cursor is over one
of the window buttons.
2022-09-09 15:23:13 -04:00
John Lindgren
b7c4ba825a
view/ssd: Refactor and fix visual indication for active windows
...
Partially fixes #494 .
Co-Authored-by: Consolatis
2022-08-27 06:58:20 +01:00
Consolatis
09915b8f43
src/ssd/ssd.c: Keep view->margin in sync when toggling decorations
...
Fixes #409
2022-06-30 06:45:18 +01:00
Consolatis
ca9226a7a6
src/ssd: Convert button node descriptors to struct ssd_button
...
This allows for way easier button hover detection and future
features like toggling rounded corner buttons on maximize.
2022-06-09 22:04:35 +01:00
Consolatis
08518513cc
Chase wlroots: scene_node.state is now inlined
...
Chases wlroots cb2dbc327e4d695c2a60a386e116a7dc20b29107
wlr_scene: Inline wlr_scene_node_state
2022-06-07 07:13:37 +01:00
Consolatis
2ed7a10779
Chase wlroots: every scene_node parent is now a tree
...
Chases wlroots ccd0f85c2a36308e35b153c7f9653abac7659af3
wlr_scene: Only allow parenting on a wlr_scene_tree
2022-06-07 07:13:37 +01:00
Consolatis
3f65a2ff77
Chase wlroots: wlr_scene is now a tree node
...
Chases wlroots 9eb71146ae56c509ee33c7e8a662549592aad870
wlr_scene: Refactor wlr_scene (the root element) to encase a wlr_scene_tree
2022-06-07 07:13:37 +01:00
Consolatis
163179dda1
Chase wlroots: wlr_scene_surface
...
To update the wlroots subproject use
meson subprojects update wlroots
2022-05-26 06:48:00 +01:00
Johan Malm
60966f5fde
src/ssd/ssd.c: remove superfluous WLR_ERROR log message
2022-04-28 22:33:56 +01:00
Consolatis
3171aba0e2
ssd: dynamically adjust resize extents based on usable_area
...
Fixes #265
2022-03-12 15:32:44 +00:00
Consolatis
e086f6f5e0
ssd: move top border above titlebar
2022-03-12 15:32:44 +00:00
Consolatis
e4f1f9a975
ssd: use dynamic titlebar height based on font size and padding
2022-03-12 15:32:44 +00:00
Johan Malm
a601615866
ssd: add top border
...
Raise border on top of (z-order) titlebar
2022-03-06 17:06:14 +00:00
Consolatis
c033667716
src/ssd/: Don't access view->surface->current directly
...
Instead use view->{w,h} which are set on client commit
2022-02-24 06:56:25 +00:00
Consolatis
29021dad6a
xdg/xwayland: Do not destroy scene node on unmap
...
This prevents segfaulting when unminimizing
2022-02-23 21:47:01 +00:00
Consolatis
5862b65f89
Convert SSD to scene nodes
2022-02-23 21:47:01 +00:00