This commit is contained in:
parent
941f7f0075
commit
179853c6c8
3 changed files with 18 additions and 11 deletions
|
|
@ -31,9 +31,9 @@ void MwLLCairoLine(struct _MwLLCairo handle, MwPoint* points, MwLLColor color) {
|
||||||
cairo_set_source_rgba(handle.front_cairo_back, color->common.red / 255.0, color->common.green / 255.0, color->common.blue / 255.0, 1.0);
|
cairo_set_source_rgba(handle.front_cairo_back, color->common.red / 255.0, color->common.green / 255.0, color->common.blue / 255.0, 1.0);
|
||||||
for(i = 0; i < 2; i++) {
|
for(i = 0; i < 2; i++) {
|
||||||
if(i == 0) {
|
if(i == 0) {
|
||||||
cairo_move_to(handle.front_cairo_back, points[i].x + 0.5, points[i].y + 0.5);
|
cairo_move_to(handle.front_cairo_back, points[i].x, points[i].y);
|
||||||
} else {
|
} else {
|
||||||
cairo_line_to(handle.front_cairo_back, points[i].x + 0.5, points[i].y + 0.5);
|
cairo_line_to(handle.front_cairo_back, points[i].x, points[i].y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
cairo_stroke(handle.front_cairo_back);
|
cairo_stroke(handle.front_cairo_back);
|
||||||
|
|
|
||||||
|
|
@ -1505,11 +1505,19 @@ void MwLLWaylandSetupCallbacks(struct _MwLLWayland* wayland) {
|
||||||
WL_INTERFACE(zwp_relative_pointer_manager_v1);
|
WL_INTERFACE(zwp_relative_pointer_manager_v1);
|
||||||
WL_INTERFACE(xdg_wm_base);
|
WL_INTERFACE(xdg_wm_base);
|
||||||
WL_INTERFACE(zwlr_layer_shell_v1); /* Only used for layer surface, but we use it always if it's turned into a tool window */
|
WL_INTERFACE(zwlr_layer_shell_v1); /* Only used for layer surface, but we use it always if it's turned into a tool window */
|
||||||
WL_INTERFACE(wl_subcompositor);
|
|
||||||
if(wayland->type == MwLL_WAYLAND_TOPLEVEL) {
|
if(wayland->type == MwLL_WAYLAND_TOPLEVEL) {
|
||||||
WL_INTERFACE(zxdg_decoration_manager_v1);
|
WL_INTERFACE(zxdg_decoration_manager_v1);
|
||||||
WL_INTERFACE(xdg_toplevel_icon_manager_v1);
|
WL_INTERFACE(xdg_toplevel_icon_manager_v1);
|
||||||
|
WL_INTERFACE(wl_subcompositor);
|
||||||
|
WL_INTERFACE(wl_seat);
|
||||||
WL_INTERFACE(wp_fifo_manager_v1);
|
WL_INTERFACE(wp_fifo_manager_v1);
|
||||||
|
} else if(wayland->type == MwLL_WAYLAND_POPUP) {
|
||||||
|
WL_INTERFACE(wl_seat);
|
||||||
|
} else if(wayland->type == MwLL_WAYLAND_LAYER_SURFACE) {
|
||||||
|
WL_INTERFACE(wl_subcompositor);
|
||||||
|
WL_INTERFACE(wl_seat);
|
||||||
|
} else {
|
||||||
|
WL_INTERFACE(wl_subcompositor);
|
||||||
}
|
}
|
||||||
#undef WL_INTERFACE
|
#undef WL_INTERFACE
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -892,7 +892,6 @@ static void widget_setup(MwLL r, MwLL parent, int x, int y, int width, int heigh
|
||||||
r->wayland.parent = parent;
|
r->wayland.parent = parent;
|
||||||
r->wayland.valid = MwTRUE;
|
r->wayland.valid = MwTRUE;
|
||||||
|
|
||||||
printf("type %d\n", ty);
|
|
||||||
if(ty == MwLL_WAYLAND_UNKNOWN) {
|
if(ty == MwLL_WAYLAND_UNKNOWN) {
|
||||||
if(parent == NULL) {
|
if(parent == NULL) {
|
||||||
setup_toplevel(r, x, y);
|
setup_toplevel(r, x, y);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue