-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
applied Peter Hartlichs nice interim Xinerama and map fix patches, fo…
…r debugging purposes I also added his transient test driver
- Loading branch information
1 parent
a372248
commit 0de4197
Showing
3 changed files
with
56 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
MIT/X Consortium License | ||
|
||
© 2006-2011 Anselm R Garbe <[email protected]> | ||
© 2006-2007 Sander van Dijk <a dot h dot vandijk at gmail dot com> | ||
© 2007-2011 Peter Hartlich <sgkkr at hartlich dot com> | ||
© 2010-2011 Connor Lane Smith <[email protected]> | ||
© 2006-2009 Jukka Salmi <jukka at salmi dot ch> | ||
© 2007-2009 Premysl Hruby <dfenze at gmail dot com> | ||
© 2007-2009 Szabolcs Nagy <nszabolcs at gmail dot com> | ||
© 2007-2009 Christof Musik <christof at sendfax dot de> | ||
© 2009 Mate Nagy <mnagy at port70 dot net> | ||
© 2007-2008 Enno Gottox Boland <gottox at s01 dot de> | ||
© 2007-2008 Peter Hartlich <sgkkr at hartlich dot com> | ||
© 2008 Martin Hurton <martin dot hurton at gmail dot com> | ||
© 2008 Neale Pickett <neale dot woozle dot org> | ||
© 2009 Mate Nagy <mnagy at port70 dot net> | ||
© 2006-2007 Sander van Dijk <a dot h dot vandijk at gmail dot com> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a | ||
copy of this software and associated documentation files (the "Software"), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* cc transient.c -o transient -lX11 */ | ||
|
||
#include <stdlib.h> | ||
#include <unistd.h> | ||
#include <X11/Xlib.h> | ||
#include <X11/Xutil.h> | ||
|
||
int main(void) { | ||
Display *d; | ||
Window r, f, t = None; | ||
XSizeHints h; | ||
XEvent e; | ||
|
||
d = XOpenDisplay(NULL); | ||
if (!d) | ||
exit(1); | ||
r = DefaultRootWindow(d); | ||
|
||
f = XCreateSimpleWindow(d, r, 100, 100, 400, 400, 0, 0, 0); | ||
h.min_width = h.max_width = h.min_height = h.max_height = 400; | ||
h.flags = PMinSize | PMaxSize; | ||
XSetWMNormalHints(d, f, &h); | ||
XStoreName(d, f, "floating"); | ||
XMapWindow(d, f); | ||
|
||
XSelectInput(d, f, ExposureMask); | ||
while (1) { | ||
XNextEvent(d, &e); | ||
|
||
if (t == None) { | ||
sleep(5); | ||
t = XCreateSimpleWindow(d, r, 50, 50, 100, 100, 0, 0, 0); | ||
XSetTransientForHint(d, t, f); | ||
XStoreName(d, t, "transient"); | ||
XMapWindow(d, t); | ||
XSelectInput(d, t, ExposureMask); | ||
} | ||
} | ||
|
||
XCloseDisplay(d); | ||
exit(0); | ||
} |