mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-24 06:59:45 -05:00
Add view_resize
This commit is contained in:
parent
97679b8e12
commit
33a97576ca
5 changed files with 30 additions and 8 deletions
|
|
@ -41,6 +41,12 @@ void view_activate(struct roots_view *view, bool activate) {
|
|||
}
|
||||
}
|
||||
|
||||
void view_resize(struct roots_view *view, uint32_t width, uint32_t height) {
|
||||
if (view->resize) {
|
||||
view->resize(view, width, height);
|
||||
}
|
||||
}
|
||||
|
||||
struct roots_view *view_at(struct roots_desktop *desktop, int x, int y) {
|
||||
for (size_t i = 0; i < desktop->views->length; ++i) {
|
||||
struct roots_view *view = desktop->views->items[i];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue