Giter Site home page Giter Site logo

windowlab's People

Contributors

nickgravgaard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

windowlab's Issues

icon/logo missing

windowlab needs an icon/logo for using as lightdm badge ( like /usr/share/unity-greeter/custom_*_badge.png ) - what can be used there?

A faster mouse

I added these modifications to improve my use of your software.
Right & Middle click on Dekstop or Window titlebar: Mouse pointer to taskbar.

patch -p1 < windowlab.patch

diff -Naur windowlab-master/events.c mywlab/events.c
--- windowlab-master/events.c	2016-03-11 16:15:06.000000000 -0500
+++ mywlab/events.c	2017-11-25 11:11:05.160805911 -0500
@@ -157,6 +157,10 @@
 		{
 			rclick_root();
 		}
+		else if (e->button == Button2)
+		{
+			send_mouse_menu();
+		}
 	}
 	else if (e->window == taskbar)
 	{
@@ -197,6 +201,19 @@
 		{
 			rclick_root();
 		}
+		else if (e->button == Button2)
+		{
+			c =find_client(e->window,FRAME);
+			if (c != NULL)
+			{
+				// click-to-focus
+				check_focus(c);
+				if (e->y < BARHEIGHT() && c != fullscreen_client)
+				{
+					send_mouse_menu();
+				}
+			}
+		}
 	}
 }
diff -Naur windowlab-master/taskbar.c mywlab/taskbar.c
--- windowlab-master/taskbar.c	2016-03-11 16:15:06.000000000 -0500
+++ mywlab/taskbar.c	2017-11-25 08:45:40.674290754 -0500
@@ -308,12 +308,24 @@
 	}
 }
 
+void send_mouse_menu(void)
+{
+	Display *dsply;
+	Window root_window;
+	dsply = XOpenDisplay(0);
+	root_window = XRootWindow(dsply, 0);
+	XSelectInput(dsply, root_window, KeyReleaseMask);
+	XWarpPointer(dsply, None, root_window, 0, 0, 0, 0, 10, 10);
+	XFlush(dsply);
+}
+
 void draw_menubar(void)
 {
+	send_mouse_menu();
 	unsigned int i, dw;
 	dw = DisplayWidth(dsply, screen);
 	XFillRectangle(dsply, taskbar, menu_gc, 0, 0, dw, BARHEIGHT() - DEF_BORDERWIDTH);
diff -Naur windowlab-master/windowlab.h mywlab/windowlab.h
--- windowlab-master/windowlab.h	2016-03-11 16:15:06.000000000 -0500
+++ mywlab/windowlab.h	2017-11-25 08:45:05.679292699 -0500
@@ -314,6 +315,7 @@
 extern XftDraw *tbxftdraw;
 #endif
 extern void make_taskbar(void);
+extern void send_mouse_menu(void);
 extern void cycle_previous(void);
 extern void cycle_next(void);
 extern void lclick_taskbar(int);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.