fjolnir / xnomad

A tiling window manager for OS X, written in tranquil.
484 stars 28 forks source link

Window title bar not taken into account #18

Open brabalan opened 11 years ago

brabalan commented 11 years ago

With the current version of iTunes (I did not test with the previous one), the title bar does not seem to be taken into account when resizing the window, so that the top of it is partially hidden behind the menu bar.

Here is a screenshot of it: https://dl.dropbox.com/u/2189064/iTunes.png

fjolnir commented 11 years ago

iTunes is such a piece of crap. (Personally I use cmus: http://cmus.sourceforge.net) It's because iTunes does not use a native window, so there's no bounds checking when moving the window to y=0 Unless I come up with a very trivial way of fixing this, I'll have a hard time motivating myself to fix an issue that only affects an app I don't use :)

have you considered getting rid of the menubar? (http://moapp.tumblr.com/post/2558804142/menuanddockless) What I do is, hide the menubar and use DejaMenu. (http://d.asgeirsson.is/Yu6m)

brabalan commented 11 years ago

I've seen similar things with other programs. For instance, in one screen, I have busycal and bibdesk in one column, and they stack a little (see https://dl.dropbox.com/u/2189064/busy1.png or https://dl.dropbox.com/u/2189064/busy2.png). In fact I just noticed that as soon as two windows are in the same column, they stack a bit (just to cover the title bar). This seems application independent. I tried with three windows, and only the two at the top stack.

I could try getting rid of the menubar, but I wonder: how do you access the apple menu? And how do you see your menu items? I have some of them that have notifications that I need to look at, at least some times. (I could directly try installing menuanddockless, but I want to make sure I want to before getting into simbl territory.)

fjolnir commented 11 years ago

The stacking issue happens when a window has a minimum size set and xnomad tries to make it smaller than that. Afaik there's no way of checking what the min size is(if there was, I could make the layout more dynamic), I might be able to override it somehow, but that would probably mess the ui up for some apps.

Unless of course this is a different bug, I haven't seen before; to check that: just to shrink a window next time you see one overlapping another, if it works, then I need to take a closer look.

Hiding the menu bar just means auto hide, like the dock does, it's not gone for good :)

On 2012/12/06, at 0:45, Alan Schmitt notifications@github.com wrote:

I've seen similar things with other programs. For instance, in one screen, I have busycal and bibdesk in one column, and they stack a little (see https://dl.dropbox.com/u/2189064/busy1.png or https://dl.dropbox.com/u/2189064/busy2.png). In fact I just noticed that as soon as two windows are in the same column, they stack a bit (just to cover the title bar). This seems application independent. I tried with three windows, and only the two at the top stack.

I could try getting rid of the menubar, but I wonder: how do you access the apple menu? And how do you see your menu items? I have some of them that have notifications that I need to look at, at least some times. (I could directly try installing menuanddockless, but I want to make sure I want to before getting into simbl territory.)

— Reply to this email directly or view it on GitHubhttps://github.com/fjolnir/xnomad/issues/18#issuecomment-11046329.

brabalan commented 11 years ago

Regarding stacking issue: I think it's a different bug, because I can shrink both windows. In fact, I can add a third window in this column and each window will take a third of the height, with the top two ones stacking up a little bit.

I wonder if it's related to the menubar thing, as the height where they stack up seems to be the same size as the height of the menubar.

Regarding the menubar, I'll give MenuAndDockless a try. I'll report if I see the stacking problem go away. I see there is a recent (not free) replacement for DejaMenu: http://alicedev.com/menumate

brabalan commented 11 years ago

After installing and configuring MenuAndDockless, the stacking problem goes away.

fjolnir commented 11 years ago

Ah, then it's probably a bug that only presents itself when the menubar is visible. the menubar probably pushes the top window down by 20 pixels, obscuring the titlebar of the second one. That I can fix.

Menumate is cool, I like that you can bind it to a mouse button. I'll probably trash my mighty mouse for one that has >= 3 buttons now :) Also it displays key shortcuts and the apple menu, which dejamenu does not. Thanks for the tip

On Thu, Dec 6, 2012 at 4:27 PM, Alan Schmitt notifications@github.comwrote:

Regarding stacking issue: I think it's a different bug, because I can shrink both windows. In fact, I can add a third window in this column and each window will take a third of the height, with the top two ones stacking up a little bit.

I wonder if it's related to the menubar thing, as the height where they stack up seems to be the same size as the height of the menubar.

Regarding the menubar, I'll give MenuAndDockless a try. I'll report if I see the stacking problem go away. I see there is a recent (not free) replacement for DejaMenu: http://alicedev.com/menumate

— Reply to this email directly or view it on GitHubhttps://github.com/fjolnir/xnomad/issues/18#issuecomment-11075468.