Re: [dev] [bug][dwm] Fullscreen youtube after tag switch in 6.1

2016-03-06 Thread Carlos Pita
> Flash is very much a technical problem. Binary blob, catastrophic > security record, X11 support is a giant hack (render a window on top of > the page), absolutely non-portable outside of a few common > OS+architecture combinations, want me to go on? I don't care about flash at all. I just repor

Re: [dev] [bug][dwm] Fullscreen youtube after tag switch in 6.1

2016-03-06 Thread Carlos Pita
> > 4. Switch again to the youtube tag: flash has crashed. > ^ > > You get what you deserve. So it's not a technical but a moral issue, sorry then, I'll ask my rabbi.

[dev] [bug][dwm] Fullscreen youtube after tag switch in 6.1

2016-03-06 Thread Carlos Pita
Steps to reproduce (tested against 6.1 master branch): 1. Open youtube in firefox (not tested with other browsers). 2. Play some video in fullscreen mode. 3. Switch to an *empty* tag (the problem doesn't happen if this other tag has some client in it). 4. Switch again to the youtube tag: flash has

Re: [dev] tabbed - why?

2014-02-18 Thread Carlos Pita
> I just remembered about the deck layout [1], it's another example of a I think deck like layouts are, in general, a bad idea. I'd implemented a generalization of deck as part of a previous version of my xtile patch that I ultimately decided to ditch. I don't want to repeat here what I've already

Re: [dev] [dwm] astray: my branch of systray

2014-01-17 Thread Carlos Pita
On Fri, Jan 17, 2014 at 9:22 PM, Eric Pruitt wrote: > On Fri, Jan 17, 2014 at 08:48:08PM -0200, Carlos Pita wrote: >> I've been working a lot on Jan C. E. systray patch and I would like to >> share the result. The changes are in the systray branch of my >> dwm-a

[dev] Re: [dwm] astray: my branch of systray

2014-01-17 Thread Carlos Pita
Also: * Configurable minimum bar height. (since less than 16 pixels is problematic for some clients)

[dev] [dwm] astray: my branch of systray

2014-01-17 Thread Carlos Pita
Hi all, I've been working a lot on Jan C. E. systray patch and I would like to share the result. The changes are in the systray branch of my dwm-athens project: https://github.com/memeplex/dwm-athens/compare/dwm-6.0...systray Hopefully some or all of the changes will eventually be included in th

[dev] Re: [dwm] stacker patch (client stack management)

2014-01-13 Thread Carlos Pita
he docs. Note: if you use xtile too it's expected that you get some merge conflicts as both patches share a common set of utility macros. Chose any set of macros (even if they differ a bit in their definition). Cheers -- Carlos On Thu, Jan 9, 2014 at 4:46 PM, Carlos Pita wrote: >

Re: [dev] [dwm] gaps patch

2014-01-13 Thread Carlos Pita
Hi Chris, I've been pushing all my patches to the sites repo, yes. Some of them were already accepted and others are in pull request state. Best regards -- Carlos On Sun, Jan 12, 2014 at 11:48 PM, Chris Down wrote: > On 2014-01-12 22:05:21 -0200, Carlos Pita wrote: >> I would

[dev] Re: [dwm] xtile patch

2014-01-12 Thread Carlos Pita
mple, '<||' stands for the default right stack tile provided by dwm and '^--' stands for bstack (as defined by the bottom stack patch). On Sun, Jan 12, 2014 at 9:00 PM, Carlos Pita wrote: > Hi, > > I would like to share this new patch I've written. It's akin to

[dev] [dwm] gaps patch

2014-01-12 Thread Carlos Pita
Hi, I would like to share this alternative to the uselessgap patch I've written. The gaps patch modifies the tile layout to add a gap between clients that helps to visually differentiate between selected borders and normal borders and so provides an additional visual hint to identify the currentl

[dev] [dwm] xtile patch

2014-01-12 Thread Carlos Pita
ecked client, each time you reach the deck again by using `mod-j`/`mod-k` the visible decked client will be replaced by the first/last decked one. In general, there is a devilish interplay of the focus stack and the z-stack that makes the deck unusable as a tabbed view of the decked clients, at least for more than one or two decked clients. Fortunately, dwm provides a much better mechanism to restrict visibility: tags. IMO there is no need to provide a half-assed alternative to one of dwm's strongest selling points. Other patches - Recommended complementary patches: * [gaps](gaps): to add mostly useless gaps that nevertheless make more apparent which client has the focus. * [stacker](stacker): to better accommodate the clients to the more elaborate layouts allowed by xtile. But I would add: subject to the caveats that I've expressed above. Mandatory dependencies: * [pertag](pertag): we all know this one. Related patches: [bottom stack](bottom_stack), [flextile](flextile). Download * [dwm-6.0-xtile.diff](dwm-6.0-xtile.diff) Author -- * Carlos Pita (memeplex)

Re: [dev] [st] problem with fonts in git development version

2014-01-11 Thread Carlos Pita
Hi there, I've had no time to look at this in detail yet but rebasing without commit e8dba89 fixes the problem (i.e. git rebase --onto e8dba89^ e8dba89 HEAD). The description of that commit is: query pixel size from matched font Sorry for another duplicated mail. I found the patch is malf

Re: [dev] [st] problem with fonts in git development version

2014-01-11 Thread Carlos Pita
you're using for dejavu? Have you done other changes to your configuration? On Sat, Jan 11, 2014 at 4:01 PM, Bryan Bennett wrote: > On Sat, Jan 11, 2014 at 12:59 PM, Carlos Pita > wrote: >> I would like to know whether this is a temporary buggy behavior or >> it's

[dev] [dwm] stacker patch (client stack management)

2014-01-09 Thread Carlos Pita
tended to be used as quick positional shortcuts to specific applications. So if you have 9 tags you get 9\*3=27 shortcuts in a two-level hierarchy of windows. The `z` key is more like "I don't care so much about you just right now but you can still live in this tag". Notice that `MODKEY|ShiftMask+q` collides with the default binding for quitting dwm, which stacker changes to `MODKEY|ShiftMask+BackSpace`. Download * [dwm-6.0-stacker.diff](dwm-6.0-stacker.diff) Author -- * Carlos Pita (memeplex)

Re: [dev] [dwm] Pango patch for 6.0 (update: markup & cleanup)

2014-01-09 Thread Carlos Pita
Hi all again, I'm attaching an updated version of the pango patch. I've rewritten the pango/xft object creation/cleanup code for good and I've fixed a couple of subtle bugs (that probably would never manifest themselves, anyway) that were in the original code. But most important I've added (optio

Re: [dev] [dwm] Pango patch for 6.0

2013-12-30 Thread Carlos Pita
> However, I would suggest to add this patch to the optional patches and > not to mainline due to several reasons: Of course, that's what I was asking for. I wouldn't use dwm anymore if you let me commit this into the mainline :). Regards -- Carlos

[dev] [dwm] Pango patch for 6.0

2013-12-30 Thread Carlos Pita
Hi, I would like to contribute the attached patch against dwm-6.0. It's an improved version of another one I've found in the web: it better follows the suckless code conventions and, more important, the vertical alignment of the rendered text has been corrected. I find pango a better option than

[dev] [tabbed] [patch] Remove startup flickering

2012-10-19 Thread Carlos Pita
Just a trivial fix for a minor quirk: an aesthetic annoyance I experienced when launching a new surf view inside tabbed. The surf instance flashed a little on startup which is completely avoidable as far as tabbed won't show it immediately. I lowered the new window until it gets focused. Best rega

Re: [dev] [surf] [patch] Multiple views, one process

2012-10-19 Thread Carlos Pita
> I have mixed feelings about this idea. > > On the one hand, I like that new windows are new processes. It makes > sense, and ensures that unix tools like kill, and I imagine workload > schedulers, work as expected. I know. I just think that the memory tradeoff is significant enough to pay this c

[dev] [surf] [patch] Multiple views, one process

2012-10-19 Thread Carlos Pita
Hi all, I've coded this patch that considerably reduces surf memory usage (and some LOCs) by avoiding the creation of a new process each time a new webview is created. The patch is very simple, it just replaces calls to newwindow with calls to a slightly modified newclient. This only applies to "i

Re: [dev] [surf] A bug with Googles multiple sign-in

2012-10-16 Thread Carlos Pita
time and I'll see what can be done. Regards -- Carlos On Tue, Oct 16, 2012 at 11:57 AM, Nick wrote: > On Tue, Oct 16, 2012 at 09:03:44AM -0300, Carlos Pita wrote: >> Maybe you will find this patch to enable webkit cookie support (the >> cookie jar) useful. > > Thanks for

Re: [dev] [surf] A bug with Googles multiple sign-in

2012-10-16 Thread Carlos Pita
Maybe you will find this patch to enable webkit cookie support (the cookie jar) useful. Regards -- Carlos On Tue, Oct 16, 2012 at 5:37 AM, Daniel Bainton wrote: > Hi, > > I bumped into a bug in surf. > > I try to use Googles multiple sign-in so I can view my work and my > personal mail in the sa

Re: [dev] [tabbed] [patch] Auto-hide title when there is only one window

2012-10-13 Thread Carlos Pita
o you moderate which ones reach the suckless site and which ones not? Regards -- Carlos On Sat, Oct 13, 2012 at 5:15 PM, Christoph Lohmann <2...@r-36.net> wrote: > Greetings. > > On Sat, 13 Oct 2012 22:15:59 +0200 Carlos Pita > wrote: >> Just that. >> >> So

[dev] [tabbed] [patch] Auto-hide title when there is only one window

2012-10-13 Thread Carlos Pita
Just that. Some observations about the (minor) changes: vbh = visible bar height, the height that the bar should have when it's visible, calculated from font dimensions, this remains constant during tabbed lifespan. bh = effective bar height, sometimes 0, somethimes vbh. Only when bh changes I

[dev] [tabbed] [patch] fix title encoding issues

2012-10-12 Thread Carlos Pita
Using a locale and font configuration that works fine for dwm and dmenu (LANG=en_US.UTF-8, font=-*-terminus-medium-r-*-*-14-*-*-*-*-*-iso8859-1) I have found some encoding issues in the titles shown by tabbed (both for embedded surf and urxvt instances) when they include latin1 characters above the

Re: [dev] [surf] zero percent in title bug

2012-10-12 Thread Carlos Pita
>>> c->progress = 100; // <--- previously = 0 >> >> Could you please send patches instead of complex inline gibberish? Sorry, it was just 1 LOC and I wasn't even sure that the fix was the right one. Here is the patch. Regards -- Carlos surf-r246-0progress.diff Description: B

[dev] [surf] [patch] Copy link location to primary selection

2012-10-12 Thread Carlos Pita
Makes "copy link location" item in context menu to feed the primary selection so then you can just middle-click to paste as usual. Regards -- Carlos surf-r246-primsel.diff Description: Binary data

[dev] [surf] [patch] Middle click to open new tab/window (C version)

2012-10-12 Thread Carlos Pita
Hi, experiencing problems in some pages with the "middle click links" js script I wrote this patch to achieve the same goal. Middle button click opens a new tab while inside tabbed and a new window in case surf is not embedded. Also, ctrl-middle-click forces new window. Regards -- Carlos surf-r

[dev] [surf] zero percent in title bug

2012-10-12 Thread Carlos Pita
Hi, I found this patch for the bug but I don't think it's right to just hide the [0%] because there is the legitimate case when the page hasn't started to load yet. http://www.digipedia.pl/usenet/thread/15253/9123/ So I did this instead: case WEBKIT_LOAD_FINISHED: c->progress = 100;

[dev] [tabbed] attach on demand

2012-10-12 Thread Carlos Pita
Hi, I tend to open every surf instance (except for apps like gmail) in its own tabbed instance just because I don't know beforehand if I would need more tabs while navigating from the initial page. The ability to attach (and maybe detach) to tabbed on demand would be very handy in order to avoid t

Re: [dev] [surf] Double execution of masked key binding

2012-10-12 Thread Carlos Pita
abbed. have you pushed your changes already? Regards -- Carlos On Fri, Oct 12, 2012 at 6:45 AM, Christoph Lohmann <2...@r-36.net> wrote: > Greetings. > > On Fri, 12 Oct 2012 11:45:04 +0200 Carlos Pita > wrote: >> Hi, >> >> this seems like a bug in surf 0.5 to m

[dev] [surf] Double execution of masked key binding

2012-10-12 Thread Carlos Pita
Hi, this seems like a bug in surf 0.5 to me. When defining a couple of key bindings for the same key, one with a shift mask and the other without the mask, the commands for both bindings are executed in sequence when I press the shift-masked key once. For example: My keys[] { MODKEY,

[dev] st eight bit input

2012-09-19 Thread Carlos Pita
Hi, I wonder if it's possible to get something like xterm's eightBitInput=true in st. I would like to use the alt key for some vim mappings. I'm not at all savvy on terminal stuff so any hint about how to hack the code to get this working would be very much appreciated. Best regards -- Carlos