Revert unrelated changes to labwc.h

This commit is contained in:
Consolatis 2026-04-15 23:39:58 +02:00 committed by Anirvan Banerjee
parent 8b1b59249d
commit 784cf42e4c

View file

@ -1,10 +1,10 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#ifndef LABWC_H #ifndef LABWC_H
#define LABWC_H #define LABWC_H
#include "config.h"
#include <wlr/util/box.h> #include <wlr/util/box.h>
#include <wlr/util/log.h> #include <wlr/util/log.h>
#include "common/set.h" #include "common/set.h"
#include "config.h"
#include "cycle.h" #include "cycle.h"
#include "input/cursor.h" #include "input/cursor.h"
#include "overlay.h" #include "overlay.h"
@ -65,9 +65,9 @@ struct seat {
struct input_method_relay *input_method_relay; struct input_method_relay *input_method_relay;
/** /**
* Cursor context saved when a mouse button is pressed on a * Cursor context saved when a mouse button is pressed on a view/surface.
* view/surface. It is used to send cursor motion events to a surface * It is used to send cursor motion events to a surface even though
* even though the cursor has left the surface in the meantime. * the cursor has left the surface in the meantime.
* *
* This allows to keep dragging a scrollbar or selecting text even * This allows to keep dragging a scrollbar or selecting text even
* when moving outside of the window. * when moving outside of the window.
@ -245,8 +245,7 @@ struct server {
*/ */
struct wlr_scene_tree *xdg_popup_tree; struct wlr_scene_tree *xdg_popup_tree;
#if HAVE_XWAYLAND #if HAVE_XWAYLAND
/* Tree for unmanaged xsurfaces without initialized view (usually /* Tree for unmanaged xsurfaces without initialized view (usually popups) */
* popups) */
struct wlr_scene_tree *unmanaged_tree; struct wlr_scene_tree *unmanaged_tree;
#endif #endif
struct wlr_scene_tree *cycle_preview_tree; struct wlr_scene_tree *cycle_preview_tree;
@ -255,7 +254,7 @@ struct server {
/* Workspaces */ /* Workspaces */
struct { struct {
struct wl_list all; /* struct workspace.link */ struct wl_list all; /* struct workspace.link */
struct workspace *current; struct workspace *current;
struct workspace *last; struct workspace *last;
struct wlr_ext_workspace_manager_v1 *ext_manager; struct wlr_ext_workspace_manager_v1 *ext_manager;
@ -409,8 +408,7 @@ void seat_pointer_end_grab(struct seat *seat, struct wlr_surface *surface);
*/ */
void seat_focus_lock_surface(struct seat *seat, struct wlr_surface *surface); void seat_focus_lock_surface(struct seat *seat, struct wlr_surface *surface);
void seat_set_focus_layer(struct seat *seat, void seat_set_focus_layer(struct seat *seat, struct wlr_layer_surface_v1 *layer);
struct wlr_layer_surface_v1 *layer);
void seat_output_layout_changed(struct seat *seat); void seat_output_layout_changed(struct seat *seat);
/* /*
@ -461,6 +459,7 @@ void server_start(void);
void server_finish(void); void server_finish(void);
void create_constraint(struct wl_listener *listener, void *data); void create_constraint(struct wl_listener *listener, void *data);
void constrain_cursor(struct wlr_pointer_constraint_v1 *constraint); void constrain_cursor(struct wlr_pointer_constraint_v1
*constraint);
#endif /* LABWC_H */ #endif /* LABWC_H */