@@ -94,7 +94,7 @@ struct drag_done_signal
94
94
struct view_t
95
95
{
96
96
/* * Dragged view. */
97
- wayfire_view view;
97
+ wayfire_toplevel_view view;
98
98
99
99
/* *
100
100
* The position relative to the view where the grab was.
@@ -107,7 +107,7 @@ struct drag_done_signal
107
107
std::vector<view_t > all_views;
108
108
109
109
/* * The main view which was dragged. */
110
- wayfire_view main_view;
110
+ wayfire_toplevel_view main_view;
111
111
112
112
/* *
113
113
* The position of the input when the view was dropped.
@@ -256,7 +256,7 @@ static const std::string move_drag_transformer = "move-drag-transformer";
256
256
struct dragged_view_t
257
257
{
258
258
// The view being dragged
259
- wayfire_view view;
259
+ wayfire_toplevel_view view;
260
260
261
261
// Its transformer
262
262
std::shared_ptr<scale_around_grab_t > transformer;
@@ -267,7 +267,7 @@ struct dragged_view_t
267
267
wf::geometry_t last_bbox;
268
268
};
269
269
270
- inline wayfire_view get_toplevel (wayfire_view view)
270
+ inline wayfire_toplevel_view get_toplevel (wayfire_toplevel_view view)
271
271
{
272
272
while (view->parent )
273
273
{
@@ -277,10 +277,10 @@ inline wayfire_view get_toplevel(wayfire_view view)
277
277
return view;
278
278
}
279
279
280
- inline std::vector<wayfire_view > get_target_views (wayfire_view grabbed,
280
+ inline std::vector<wayfire_toplevel_view > get_target_views (wayfire_toplevel_view grabbed,
281
281
bool join_views)
282
282
{
283
- std::vector<wayfire_view > r = {grabbed};
283
+ std::vector<wayfire_toplevel_view > r = {grabbed};
284
284
if (join_views)
285
285
{
286
286
r = grabbed->enumerate_views ();
@@ -419,7 +419,7 @@ class core_drag_t : public signal::provider_t
419
419
* Rebuild the wobbly model after a change in the scaling, so that the wobbly
420
420
* model does not try to animate the scaling change itself.
421
421
*/
422
- void rebuild_wobbly (wayfire_view view, wf::point_t grab, wf::pointf_t relative)
422
+ void rebuild_wobbly (wayfire_toplevel_view view, wf::point_t grab, wf::pointf_t relative)
423
423
{
424
424
auto dim = wf::dimensions (wf::view_bounding_box_up_to (view, " wobbly" ));
425
425
modify_wobbly (view, find_geometry_around (dim, grab, relative));
@@ -433,7 +433,7 @@ class core_drag_t : public signal::provider_t
433
433
* @param grab_position The position of the input, in output-layout coordinates.
434
434
* @param relative The position of the grab_position relative to view.
435
435
*/
436
- void start_drag (wayfire_view grab_view, wf::point_t grab_position,
436
+ void start_drag (wayfire_toplevel_view grab_view, wf::point_t grab_position,
437
437
wf::pointf_t relative,
438
438
const drag_options_t & options)
439
439
{
@@ -501,8 +501,7 @@ class core_drag_t : public signal::provider_t
501
501
}
502
502
}
503
503
504
- void start_drag (wayfire_view view, wf::point_t grab_position,
505
- const drag_options_t & options)
504
+ void start_drag (wayfire_toplevel_view view, wf::point_t grab_position, const drag_options_t & options)
506
505
{
507
506
if (options.join_views )
508
507
{
@@ -511,8 +510,7 @@ class core_drag_t : public signal::provider_t
511
510
512
511
auto bbox = view->get_transformed_node ()->get_bounding_box () +
513
512
wf::origin (view->get_output ()->get_layout_geometry ());
514
- start_drag (view, grab_position,
515
- find_relative_grab (bbox, grab_position), options);
513
+ start_drag (view, grab_position, find_relative_grab (bbox, grab_position), options);
516
514
}
517
515
518
516
void handle_motion (wf::point_t to)
@@ -631,7 +629,7 @@ class core_drag_t : public signal::provider_t
631
629
}
632
630
633
631
// View currently being moved.
634
- wayfire_view view;
632
+ wayfire_toplevel_view view;
635
633
636
634
// Output where the action is happening.
637
635
wf::output_t *current_output = NULL ;
@@ -779,7 +777,7 @@ inline void adjust_view_on_output(drag_done_signal *ev)
779
777
/* *
780
778
* Adjust the view's state after snap-off.
781
779
*/
782
- inline void adjust_view_on_snap_off (wayfire_view view)
780
+ inline void adjust_view_on_snap_off (wayfire_toplevel_view view)
783
781
{
784
782
if (view->tiled_edges && !view->fullscreen )
785
783
{
0 commit comments