]> Pileus Git - wmpus/commitdiff
Cleanup a bit
authorAndy Spencer <andy753421@gmail.com>
Sat, 28 Mar 2015 23:05:12 +0000 (23:05 +0000)
committerAndy Spencer <andy753421@gmail.com>
Sat, 28 Mar 2015 23:05:12 +0000 (23:05 +0000)
sys-xwl.c

index 67a4e9895239bda0027f441dcf02cac34e9cdfe5..aa2c1241fa054c5ded1ea541f11bd03d0bbbcbe0 100644 (file)
--- a/sys-xwl.c
+++ b/sys-xwl.c
@@ -96,7 +96,6 @@ static gboolean on_button(GtkWidget *widget, GdkEventButton *event, gpointer use
 
 static gboolean on_move(GtkWidget *widget, GdkEventMotion *event, gpointer user_data)
 {
-       //printf("on_motion\n");
        return TRUE;
 }
 
@@ -114,23 +113,6 @@ static gboolean on_draw(GtkWidget *widget, cairo_t *cairo, gpointer user_data)
        cairo_arc(cairo, 150, 150, 50, 0, 2*G_PI);
        cairo_fill(cairo);
 
-       //int gi = 0, mi;
-       //FILE *fd = fopen("/tmp/mem.txt", "w+");
-       //for (gi = 0; gi < 10; gi++) {
-       //      mi = 0;
-       //      while (gdata[gi] && (mi+32) < gdata[gi]->size) {
-       //              fprintf(fd, "%d %p %08x: ", gi, gdata[gi]->mem, mi);
-       //              for (int i = 0; i < 16; mi++, i += 2)
-       //                      fprintf(fd, "%02hhx%02hhx ",
-       //                              gdata[gi]->mem[mi+0],
-       //                              gdata[gi]->mem[mi+1]);
-       //              fprintf(fd, "\n");
-       //      }
-       //      fprintf(fd, "\n");
-       //}
-       //printf("\n");
-       //fclose(fd);
-
        return TRUE;
 }
 
@@ -142,22 +124,6 @@ static gboolean on_wayland(gpointer user_data)
        return TRUE;
 }
 
-/*********************
- * Wayland Callbacks *
- *********************/
-
-#if 0
-static void new_window(void)
-{
-       printf("new_window\n");
-}
-
-static void new_screen(void)
-{
-       printf("new_screen\n");
-}
-#endif
-
 /****************************
  * Wayland Buffer Interface *
  ****************************/
@@ -839,10 +805,10 @@ static void bind_output(struct wl_client *cli, void *data, uint32_t version, uin
                        WL_OUTPUT_SUBPIXEL_UNKNOWN,  // subpixel format
                        "unknown", "unknown",        // make, model
                        WL_OUTPUT_TRANSFORM_NORMAL); // rotatoin
-       //wl_output_send_mode(res, WL_OUTPUT_MODE_CURRENT, 800,  600,  60);
-       //wl_output_send_mode(res, WL_OUTPUT_MODE_CURRENT, 1024, 768,  60);
+       wl_output_send_mode(res, WL_OUTPUT_MODE_CURRENT, 800,  600,  60);
+       wl_output_send_mode(res, WL_OUTPUT_MODE_CURRENT, 1024, 768,  60);
        wl_output_send_mode(res, WL_OUTPUT_MODE_CURRENT, 1280, 1024, 60);
-       //wl_output_send_done(res);
+       wl_output_send_done(res);
 }
 
 static void bind_seat(struct wl_client *cli, void *data, uint32_t version, uint32_t id)