nick-gravgaard / windowlab Goto Github PK
View Code? Open in Web Editor NEWA small and simple window manager of novel design (unmaintained)
License: GNU General Public License v2.0
A small and simple window manager of novel design (unmaintained)
License: GNU General Public License v2.0
windowlab needs an icon/logo for using as lightdm badge ( like /usr/share/unity-greeter/custom_*_badge.png ) - what can be used there?
Could you tag releases (at least 1.40 and later), please? This would help distributions.
Thank you.
https://repology.org/project/windowlab/versions
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);
When I use Chrome on Windowlab, the titlebar is black. Anyone have an ideas?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.