void interactive_end(struct view *view);
void output_init(struct server *server);
-void output_damage_surface(struct output *output, struct wlr_surface *surface,
- double lx, double ly, bool whole);
-void scale_box(struct wlr_box *box, float scale);
void output_manager_init(struct server *server);
struct output *output_from_wlr_output(struct server *server,
struct wlr_output *wlr_output);
struct wlr_box output_usable_area_in_layout_coords(struct output *output);
struct wlr_box output_usable_area_from_cursor_coords(struct server *server);
-void damage_all_outputs(struct server *server);
-void damage_view_whole(struct view *view);
-void damage_view_part(struct view *view);
-
void server_init(struct server *server);
void server_start(struct server *server);
void server_finish(struct server *server);
view = desktop_view_at_cursor(server);
if (view) {
desktop_focus_and_activate_view(&server->seat, view);
- damage_all_outputs(server);
}
break;
case ACTION_TYPE_ICONIFY:
case ACTION_TYPE_RAISE:
if (view) {
desktop_move_to_front(view);
- damage_all_outputs(server);
}
break;
case ACTION_TYPE_RESIZE:
static void
process_cursor_move(struct server *server, uint32_t time)
{
- damage_all_outputs(server);
double dx = server->seat.cursor->x - server->grab_x;
double dy = server->seat.cursor->y - server->grab_y;
struct view *view = server->grabbed_view;
static void
process_cursor_resize(struct server *server, uint32_t time)
{
- damage_all_outputs(server);
double dx = server->seat.cursor->x - server->grab_x;
double dy = server->seat.cursor->y - server->grab_y;
+++ /dev/null
-// SPDX-License-Identifier: GPL-2.0-only
-#include "labwc.h"
-
-void
-damage_all_outputs(struct server *server)
-{
-}
-
-void
-damage_view_part(struct view *view)
-{
-}
-
-void
-damage_view_whole(struct view *view)
-{
-}
view = wl_container_of(view->link.prev, view, link);
} while (&view->link == &server->views || !isfocusable(view));
}
- damage_all_outputs(server);
return view;
}
if (server->cycle_view) {
struct wlr_event_keyboard_key *event = data;
struct wlr_keyboard *keyboard = &seat->keyboard_group->keyboard;
- damage_all_outputs(server);
if ((event->state == WL_KEYBOARD_KEY_STATE_RELEASED)
&& !any_modifiers_pressed(keyboard)) {
/* end cycle */
}
if (server->cycle_view) {
- damage_all_outputs(server);
if (event->state == WL_KEYBOARD_KEY_STATE_PRESSED) {
for (int i = 0; i < nsyms; i++) {
if (syms[i] == XKB_KEY_Escape) {
'action.c',
'buffer.c',
'cursor.c',
- 'damage.c',
'debug.c',
'desktop.c',
'foreign.c',
wlr_cursor_move(server->seat.cursor, NULL, 0, 0);
wlr_xcursor_manager_set_cursor_image(server->seat.xcursor_manager,
XCURSOR_DEFAULT, server->seat.cursor);
-
- /* Redraw everything */
- damage_all_outputs(server);
}
static void
if (!layer) {
seat->focused_layer = NULL;
desktop_focus_topmost_mapped_view(seat->server);
- damage_all_outputs(seat->server);
return;
}
seat_focus_surface(seat, layer->surface);
menu_reconfigure(g_server);
seat_reconfigure(g_server);
- damage_all_outputs(g_server);
}
static int
view_update_title(view);
view_update_app_id(view);
-
- damage_all_outputs(view->server);
}
}
ssd_update_title(view);
wlr_foreign_toplevel_handle_v1_set_title(view->toplevel_handle, title);
- damage_all_outputs(view->server);
}
void
view->x, view->y);
}
ssd_update_geometry(view);
- damage_view_part(view);
}
static void
view->x = geo.x;
view->y = geo.y;
ssd_update_geometry(view);
- //damage_all_outputs(view->server);
}
}
#undef MAX
struct wlr_xwayland_surface *xsurface = unmanaged->xwayland_surface;
unmanaged->lx = xsurface->x;
unmanaged->ly = xsurface->y;
- damage_all_outputs(unmanaged->server);
}
static struct view *
unmanaged->lx = xsurface->x;
unmanaged->ly = xsurface->y;
- damage_all_outputs(unmanaged->server);
if (wlr_xwayland_or_surface_wants_focus(xsurface)) {
seat_focus_surface(&unmanaged->server->seat, xsurface->surface);
}
struct xwayland_unmanaged *unmanaged =
wl_container_of(listener, unmanaged, unmap);
struct wlr_xwayland_surface *xsurface = unmanaged->xwayland_surface;
- damage_all_outputs(unmanaged->server);
wl_list_remove(&unmanaged->link);
wl_list_remove(&unmanaged->commit.link);
wlr_xwayland_surface_configure(view->xwayland_surface,
event->x, event->y, MAX(event->width, min_width),
MAX(event->height, min_height));
- damage_all_outputs(view->server);
}
#undef MAX
wlr_xwayland_surface_configure(view->xwayland_surface, (int16_t)geo.x,
(int16_t)geo.y, (uint16_t)geo.width,
(uint16_t)geo.height);
- damage_all_outputs(view->server);
}
static void
_close(struct view *view)
{
wlr_xwayland_surface_close(view->xwayland_surface);
- damage_all_outputs(view->server);
}
static const char *