Lucas De Marchi
4d4401c5d3
Apply badzero.cocci, badnull.cocci and badnull2.cocci
...
Since badzero.cocci depends on coccinelle knowledge about a variable being a pointer
and about a function returning a pointer, maybe there are false negatives.
SVN revision: 51092
2010-08-13 17:04:13 +00:00
Kim Woelders
6bcde2a2b8
Fix segv when menu is created shortly after being destroyed (noted by BitJam).
...
Could be triggered by left/right clicking the magnifier window border.
Could also be triggered with "while true; do eesh menus show file.menu; done".
SVN revision: 51020
2010-08-11 19:13:14 +00:00
Kim Woelders
131f907194
Add a bit of debug.
...
SVN revision: 51019
2010-08-11 19:13:11 +00:00
Lucas De Marchi
b7564263ad
Do not compare pointers to 0
...
SVN revision: 50973
2010-08-10 19:24:38 +00:00
Kim Woelders
4ac03926da
Adjustments for indent 2.2.11.
...
SVN revision: 50909
2010-08-08 19:03:34 +00:00
Kim Woelders
7dec215508
Re-add ~/.e16 to icon search path.
...
SVN revision: 50843
2010-08-05 21:17:25 +00:00
Kim Woelders
ab66955259
Fix changing move/resize modes in dialog.
...
SVN revision: 50840
2010-08-05 17:53:57 +00:00
Kim Woelders
fbe7f5d2e3
Add sanity check in BorderCreateFiller().
...
SVN revision: 50839
2010-08-05 17:53:54 +00:00
Kim Woelders
3881d715f8
Enable showing outline for window selected in focuslist.
...
SVN revision: 50660
2010-07-29 20:39:34 +00:00
Kim Woelders
0da5d0c918
Move "shape window" code to separate file.
...
SVN revision: 50659
2010-07-29 20:39:30 +00:00
Kim Woelders
9e291e0b5c
Cosmetics.
...
SVN revision: 50658
2010-07-29 20:39:25 +00:00
Kim Woelders
ddcf624f64
Remove obsolete code.
...
SVN revision: 50657
2010-07-29 20:39:23 +00:00
Kim Woelders
0c59984a65
Silence clang.
...
SVN revision: 50656
2010-07-29 20:39:21 +00:00
Kim Woelders
8bf20489f5
Adjust extension array size.
...
SVN revision: 50358
2010-07-18 20:19:01 +00:00
Kim Woelders
0142a74dc7
Collect xinerama stuff.
...
SVN revision: 50354
2010-07-18 18:53:00 +00:00
Kim Woelders
2661970b98
Do xinerama extension test just like other extension tests.
...
SVN revision: 50353
2010-07-18 18:52:58 +00:00
Kim Woelders
d99aa08fe0
Change functions to macros (when compiling without zoom).
...
SVN revision: 50352
2010-07-18 18:52:56 +00:00
Kim Woelders
c24755d012
Use "filler" border in stead of zoom masks when zooming.
...
SVN revision: 50351
2010-07-18 18:52:54 +00:00
Kim Woelders
c76a25ec82
Eliminate GetZoomEWin() and InZoom().
...
SVN revision: 50350
2010-07-18 18:52:52 +00:00
Kim Woelders
5bdd90c22e
Simplify ZoomInit(), make static.
...
SVN revision: 50349
2010-07-18 18:52:50 +00:00
Kim Woelders
a32381ce55
Fix trouble with move/resize operations started by _NET_WM_MOVERESIZE.
...
SVN revision: 50348
2010-07-18 18:52:48 +00:00
Kim Woelders
8438984e49
Fix potential memory leak when window leaves fullscreen mode.
...
SVN revision: 50347
2010-07-18 18:52:45 +00:00
Lucas De Marchi
118b441611
Remove unneeded code with notnull.cocci script
...
The notnull.cocci script from Coccinelle finds places where you check if a
variable is NULL, but it's known not to be NULL. The check can be safely
removed. For example, this code would be caught by notnull:
if (!var) return;
if (var && var->fld) { ... }
It's needless to check again if var is not NULL because if it's in fact NULL,
it would have returned on the previous "if". This commit removes all the
trivial places where this pattern happens. Another patch will be generated for
the more complex cases.
SVN revision: 50241
2010-07-14 02:05:47 +00:00
Kim Woelders
9bfd97b97d
Fix zooming when screen is rotated using randr.
...
Based on patch by Daniel Manjarres.
SVN revision: 49489
2010-06-06 10:08:19 +00:00
Kim Woelders
6f9ab28110
Add force parameter to EwinWarpTo().
...
SVN revision: 49488
2010-06-06 10:08:17 +00:00
Kim Woelders
2eb17183a6
Fix logic in ReZoom().
...
SVN revision: 49487
2010-06-06 10:08:14 +00:00
Kim Woelders
48f6bbe94c
Trivial cleanups.
...
SVN revision: 49486
2010-06-06 10:05:53 +00:00
Kim Woelders
708e19593e
Fix some poytential segvs. Minor cleanups.
...
SVN revision: 49485
2010-06-06 10:05:50 +00:00
Kim Woelders
edc371b8af
Fix some potential segvs.
...
SVN revision: 49484
2010-06-06 10:05:48 +00:00
Kim Woelders
19c3af1c46
Remove unused radio button event function.
...
SVN revision: 49483
2010-06-06 10:05:46 +00:00
Kim Woelders
80d616be73
Make ConfigFileFind static.
...
SVN revision: 49482
2010-06-06 10:05:44 +00:00
Kim Woelders
5b94096067
Remove some unused BUTTON_... and KEY_... defines.
...
SVN revision: 49481
2010-06-06 10:05:42 +00:00
Kim Woelders
1567896698
Remove remnants of unimplemented textclass mode attribute.
...
SVN revision: 49480
2010-06-06 10:05:40 +00:00
Kim Woelders
8e9f98ea29
Simplify list stuff.
...
SVN revision: 49479
2010-06-06 10:05:38 +00:00
Kim Woelders
3c2793b29f
Add missing break.
...
SVN revision: 49478
2010-06-06 10:05:35 +00:00
Kim Woelders
0466673fbf
Trim whitespace from translatable strings.
...
SVN revision: 48723
2010-05-09 19:03:19 +00:00
Kim Woelders
490dff5974
Remove some trailing spaces from bg show command output.
...
SVN revision: 48722
2010-05-09 19:03:16 +00:00
Kim Woelders
f2831f0742
Another focus fix after recent changes.
...
SVN revision: 48679
2010-05-08 13:04:35 +00:00
Kim Woelders
9aa0d56160
Fix moving window to previous desk when current is 0 (noted by BitJam).
...
SVN revision: 48650
2010-05-06 18:42:27 +00:00
Kim Woelders
e33f6edfbd
Add option to focus window if window group is focused.
...
SVN revision: 48562
2010-05-02 20:26:54 +00:00
Kim Woelders
1c06362630
Better check for focusing transients when group is focused.
...
SVN revision: 48561
2010-05-02 20:26:51 +00:00
Kim Woelders
f947a2b0f5
Simplify.
...
SVN revision: 48560
2010-05-02 20:26:49 +00:00
Kim Woelders
203247f8a2
Silence clang.
...
SVN revision: 48559
2010-05-02 20:26:47 +00:00
Kim Woelders
88fc01d84a
Minor simplification (use GetTime in stead of gettimeofday).
...
SVN revision: 48558
2010-05-02 20:26:43 +00:00
Kim Woelders
6e5879ba87
Forgot some 2010 updates.
...
SVN revision: 48049
2010-04-16 11:07:51 +00:00
Kim Woelders
4fbabcefd0
In reparent event handler, use parent indicated by event.
...
This avoids multiple roundtrips during window creation/destruction.
I wonder why it was necessary to look up the parent with XQueryTree.
IIRC there where some misbehaving clients, maybe related to switching
in/out of fullscreen mode.
SVN revision: 47922
2010-04-11 11:43:02 +00:00
Kim Woelders
8551c41582
CM: Skip windows with empty shape.
...
Windows with empty shape seem to cause rendering artifacts, e.g.
in pager hiwin when the small pager tooltip images have empty shape.
AFAICT windows with empty shape should be handled properly by the
CM... server bug? Anyway, might as well skip them entirely.
SVN revision: 47921
2010-04-11 11:43:00 +00:00
Kim Woelders
0cc43fd186
Look up/show name of request causing error.
...
SVN revision: 47920
2010-04-11 11:42:57 +00:00
Kim Woelders
17588aa5e0
Fix incorrect initial coords placement in certain situations.
...
SVN revision: 47919
2010-04-11 11:42:55 +00:00
Kim Woelders
e5739b7835
Definitions of extention names are unreliable - use actual ones.
...
SVN revision: 47918
2010-04-11 11:42:52 +00:00