Skip to content

Commit c894eb8

Browse files
committed
compositor: Add a MetaSizeChange value for tiling.
The change type is passed to the plugin size-change signal, so Cinnamon can tell what sort of size change is happening (max/unmax/ tile). We expand on tiling enough that it merits its own change type.
1 parent 65e1dcd commit c894eb8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/core/window.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3430,7 +3430,7 @@ meta_window_tile (MetaWindow *window,
34303430
meta_window_get_buffer_rect (window, &old_buffer_rect);
34313431

34323432
meta_compositor_size_change_window (window->display->compositor, window,
3433-
META_SIZE_CHANGE_MAXIMIZE,
3433+
META_SIZE_CHANGE_TILE,
34343434
&old_frame_rect, &old_buffer_rect);
34353435

34363436
meta_window_move_resize_internal (window,

src/meta/compositor.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ typedef enum
6464
META_SIZE_CHANGE_UNMAXIMIZE,
6565
META_SIZE_CHANGE_FULLSCREEN,
6666
META_SIZE_CHANGE_UNFULLSCREEN,
67+
META_SIZE_CHANGE_TILE
6768
} MetaSizeChange;
6869

6970
META_EXPORT

0 commit comments

Comments
 (0)