mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 07:21:02 +00:00
wayland backend: change logs to debuglog
This commit is contained in:
parent
30ceacc90d
commit
6a9e97660d
4 changed files with 16 additions and 16 deletions
|
@ -191,14 +191,14 @@ create_shm_buffer(struct window *window)
|
|||
|
||||
- (void) setSurface: (cairo_surface_t*)surface
|
||||
{
|
||||
NSDebugLog(@"WaylandCairoSurface: setSurface");
|
||||
// NSDebugLog(@"WaylandCairoSurface: setSurface");
|
||||
_surface = surface;
|
||||
}
|
||||
|
||||
- (void) handleExposeRect: (NSRect)rect
|
||||
{
|
||||
NSDebugLog(@"[CairoSurface handleExposeRect]");
|
||||
struct window *window = (struct window*) gsDevice;
|
||||
NSDebugLog(@"[CairoSurface handleExposeRect] %d", window->window_id);
|
||||
cairo_surface_t *cairo_surface = _surface;
|
||||
double backupOffsetX = 0;
|
||||
double backupOffsetY = 0;
|
||||
|
@ -207,7 +207,6 @@ create_shm_buffer(struct window *window)
|
|||
int width = NSWidth(rect);
|
||||
int height = NSHeight(rect);
|
||||
|
||||
NSDebugLog(@"...updating region: %dx%d %dx%d", x, y, width, height);
|
||||
|
||||
if (cairo_surface_status(cairo_surface) != CAIRO_STATUS_SUCCESS)
|
||||
{
|
||||
|
@ -216,15 +215,17 @@ create_shm_buffer(struct window *window)
|
|||
}
|
||||
window->buffer_needs_attach = YES;
|
||||
if (window->configured) {
|
||||
NSDebugLog(@"surface attach");
|
||||
window->buffer_needs_attach = NO;
|
||||
wl_surface_attach(window->surface, window->buffer, 0, 0);
|
||||
wl_surface_damage(window->surface, 0, 0, 1000, 1000);
|
||||
wl_surface_commit(window->surface);
|
||||
wl_display_dispatch_pending(window->wlconfig->display);
|
||||
wl_display_flush(window->wlconfig->display);
|
||||
NSDebugLog(@"surface attach done");
|
||||
}
|
||||
|
||||
NSDebugLog(@"[CairoSurface handleExposeRect end]");
|
||||
//NSDebugLog(@"[CairoSurface handleExposeRect end]");
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
@ -75,14 +75,14 @@ keyboard_handle_enter(void *data, struct wl_keyboard *keyboard,
|
|||
uint32_t serial, struct wl_surface *surface,
|
||||
struct wl_array *keys)
|
||||
{
|
||||
NSDebugLog(@"keyboard_handle_enter");
|
||||
//NSDebugLog(@"keyboard_handle_enter");
|
||||
}
|
||||
|
||||
static void
|
||||
keyboard_handle_leave(void *data, struct wl_keyboard *keyboard,
|
||||
uint32_t serial, struct wl_surface *surface)
|
||||
{
|
||||
NSDebugLog(@"keyboard_handle_leave");
|
||||
//NSDebugLog(@"keyboard_handle_leave");
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -91,7 +91,7 @@ keyboard_handle_modifiers(void *data, struct wl_keyboard *keyboard,
|
|||
uint32_t mods_latched, uint32_t mods_locked,
|
||||
uint32_t group)
|
||||
{
|
||||
NSDebugLog(@"keyboard_handle_modifiers");
|
||||
//NSDebugLog(@"keyboard_handle_modifiers");
|
||||
WaylandConfig *wlconfig = data;
|
||||
xkb_mod_mask_t mask;
|
||||
|
||||
|
@ -118,7 +118,7 @@ keyboard_handle_key(void *data, struct wl_keyboard *keyboard,
|
|||
uint32_t serial, uint32_t time, uint32_t key,
|
||||
uint32_t state_w)
|
||||
{
|
||||
NSDebugLog(@"keyboard_handle_key: %d", key);
|
||||
//NSDebugLog(@"keyboard_handle_key: %d", key);
|
||||
WaylandConfig *wlconfig = data;
|
||||
uint32_t code, num_syms;
|
||||
enum wl_keyboard_key_state state = state_w;
|
||||
|
@ -166,14 +166,14 @@ keyboard_handle_key(void *data, struct wl_keyboard *keyboard,
|
|||
|
||||
[GSCurrentServer() postEvent: ev atStart: NO];
|
||||
|
||||
NSDebugLog(@"keyboard_handle_key: %@", s);
|
||||
//NSDebugLog(@"keyboard_handle_key: %@", s);
|
||||
}
|
||||
|
||||
static void
|
||||
keyboard_handle_repeat_info(void *data, struct wl_keyboard *keyboard,
|
||||
int32_t rate, int32_t delay)
|
||||
{
|
||||
NSDebugLog(@"keyboard_handle_repeat_info");
|
||||
//NSDebugLog(@"keyboard_handle_repeat_info");
|
||||
}
|
||||
|
||||
const struct wl_keyboard_listener keyboard_listener = {
|
||||
|
|
|
@ -20,7 +20,7 @@ xdg_surface_on_configure(void *data, struct xdg_surface *xdg_surface,
|
|||
NSEvent *ev = nil;
|
||||
NSWindow *nswindow = GSWindowWithNumber(window->window_id);
|
||||
|
||||
NSDebugLog(@"Acknowledging surface configure %p %d (window_id=%d)", xdg_surface, serial, window->window_id);
|
||||
//NSDebugLog(@"Acknowledging surface configure %p %d (window_id=%d)", xdg_surface, serial, window->window_id);
|
||||
xdg_surface_ack_configure(xdg_surface, serial);
|
||||
window->configured = YES;
|
||||
|
||||
|
|
9
Source/wayland/WaylandServer.m
Executable file → Normal file
9
Source/wayland/WaylandServer.m
Executable file → Normal file
|
@ -826,12 +826,12 @@ int NSToWayland(struct window *window, int ns_y)
|
|||
|
||||
- (void) setmaxsize: (NSSize)size : (int) win
|
||||
{
|
||||
NSDebugLog(@"setmaxsize");
|
||||
//NSDebugLog(@"setmaxsize");
|
||||
}
|
||||
|
||||
- (void) setminsize: (NSSize)size : (int) win
|
||||
{
|
||||
NSDebugLog(@"setminsize");
|
||||
//NSDebugLog(@"setminsize");
|
||||
}
|
||||
|
||||
- (void) setresizeincrements: (NSSize)size : (int) win
|
||||
|
@ -845,7 +845,6 @@ int NSToWayland(struct window *window, int ns_y)
|
|||
struct window *window = get_window_with_id(wlconfig, win);
|
||||
|
||||
[[GSCurrentContext() class] handleExposeRect: rect forDriver: window->wcs];
|
||||
// [(CairoSurface *)driver handleExposeRect: rect];
|
||||
}
|
||||
|
||||
- (void) styleoffsets: (float*) l : (float*) r : (float*) t : (float*) b
|
||||
|
@ -858,12 +857,12 @@ int NSToWayland(struct window *window, int ns_y)
|
|||
|
||||
- (void) docedited: (int) edited : (int) win
|
||||
{
|
||||
NSDebugLog(@"docedited");
|
||||
//NSDebugLog(@"docedited");
|
||||
}
|
||||
|
||||
- (void) setinputstate: (int)state : (int)win
|
||||
{
|
||||
NSDebugLog(@"setinputstate");
|
||||
//NSDebugLog(@"setinputstate");
|
||||
}
|
||||
|
||||
- (void) setinputfocus: (int) win
|
||||
|
|
Loading…
Reference in a new issue