mirror of
https://github.com/labwc/labwc.git
synced 2026-02-07 04:07:42 -05:00
Simplify view margin/padding related code
Fix xdg-shell CSD resize bug
This commit is contained in:
parent
b5677992f3
commit
133ea96f64
3 changed files with 17 additions and 10 deletions
|
|
@ -193,12 +193,21 @@ struct view {
|
|||
int x, y, w, h;
|
||||
|
||||
/*
|
||||
* margin refers to the space between the extremities of the view and
|
||||
* wlr_surface - typically made up of decoration.
|
||||
* For xdg-shell views, the margin is typically negative.
|
||||
* margin refers to the space between the extremities of the
|
||||
* wlr_surface and the max extents of the server-side decorations.
|
||||
* For xdg-shell views with CSD, this margin is zero.
|
||||
*/
|
||||
struct border margin;
|
||||
|
||||
/*
|
||||
* padding refers to the space between the extremities of the
|
||||
* wlr_surface and the parts of the surface that is considered the
|
||||
* window.
|
||||
* This is only used for xdg-shell views with CSD where the padding
|
||||
* area is typically invisible except for client-side drop-shawdows.
|
||||
*/
|
||||
struct border padding;
|
||||
|
||||
struct {
|
||||
bool update_x, update_y;
|
||||
double x, y;
|
||||
|
|
@ -206,8 +215,6 @@ struct view {
|
|||
uint32_t configure_serial;
|
||||
} pending_move_resize;
|
||||
|
||||
int xdg_grab_offset;
|
||||
|
||||
bool server_side_deco;
|
||||
|
||||
struct wl_listener map;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue